[Java] How to truncate a float correctly?

Printable View