class RoundTry {
public static void main(
String args[]){
System.out.println("round(90.7) = " + Math.round(90.7));
}
}
it prints out 91 (far from 90.0, not even 91.0)
because java.Math.round() return long, not float or double, so why not check it up in API and play with it.
rong chen
[This message has been edited by Rong Chen (edited October 06, 2000).]