Closed jdstroy closed 10 years ago
I believe that you basically want unsigned byte and short value to be printed like in following test:
byte b = -128;
assertEquals("-128", Printf.str("%i", b));
assertEquals("255", Printf.str("%u", b));
You are right, this test is currently failing. We will solve this!
Spot on. :)
Sorry for longer response, was away from the net.
Sweet, thanks! And no problem, I was fiddling with it a little, too.
I don't see any short or byte types for jodd-core's jodd.format.PrintfFormat class.
I am looking to convert some code from another printf implementation to jodd-core; the other implementation supports byte and short, but jodd does not (it is implicitly cast into an integer and formatted as such).