Collection of multiplatofrm string tools that does not exist on all platforms with the same interface: string and datetime formatting, etc. USeful fo write MP libraries and applications
When -94 Byte is converted as hexadecimal In JVM, using string.format returns A2 (two's complement)
However, below code using sprintf returns -5e ( 5e is 94. and - is just added)
val inputByte: Byte = -94
val formatted = "%x".sprintf(inputByte)
println(formatted)
When -94 Byte is converted as hexadecimal In JVM, using string.format returns A2 (two's complement) However, below code using sprintf returns -5e ( 5e is 94. and - is just added)