Does Scala have a built in formatter for binary data?
For example to print out: 00000011 for the Int value 3.
Writing one won\'t be difficult - just curious
I usually use to prepend zeroes of the wanted length -1 and then just chop the rightmost characters:
"0000000" + 3.toBinaryString takeRight 8
This works fine for negative values as well.