io.sureshg.extn / kotlin.Int

Extensions for kotlin.Int

esc

val Int.esc: AnsiEsc

Returns an ANSI escape unicode of the integer.

hex

val Int.hex: String

Hex and Octal util methods for Int and Byte

oct

val Int.oct: String

toBinaryPrefixString

fun Int.toBinaryPrefixString(si: Boolean = false): String

Returns human readable binary prefix for multiples of bytes.