Quote (xandumx @ Jul 19 2013 01:38pm)
Doesn't fix the zero at the end.
(double)12.50 -> "12.5" != "12.50"
I don't get it. Do you want the trailing zeros or not?
Code
public String function( double n ) {
return new DecimalFormat( "#.00" ).format( n );
}
This post was edited by labatymo on Jul 19 2013 11:53am