Wednesday, June 3, 2009

java double problem

public class HOWCOME
{
public static void main(String[] args) {
double v = 0.0d;
for (int i = 0; i < 10; i++) {
v += 0.1d;
}
System.out.println(v);
}
}

ref: http://www.narisa.com/forums/index.php?showtopic=12589&st=0

No comments:

Post a Comment