J
Joe Pribele
Can some please explain to me this whole odd even rounding in java ?
Why does 1.445 not round up to 1.45 ?
I did come across in the java docs something out odd and even neighbours
but it didn't make much sense to me.
public class test {
public static void main(String[] args ) {
System.out.println( java.text.NumberFormat.getCurrencyInstance
().format( 1.445 ) );
}
}
Why does 1.445 not round up to 1.45 ?
I did come across in the java docs something out odd and even neighbours
but it didn't make much sense to me.
public class test {
public static void main(String[] args ) {
System.out.println( java.text.NumberFormat.getCurrencyInstance
().format( 1.445 ) );
}
}