this question has answer here:
when ever put big or small number through system.out.println() (in java), decides convert 0.003897 3.897e-3 hard read when going through temporary-testing-debug-log-thing.
is there way keep 0.003897?
use decimalformat like: #.#######
usage:
decimalformat df = new decimalformat("#.00"); either use:
system.out.println( string.format( "%.6f", 123.456789d )
Comments
Post a Comment