|
You can use System.out.printf to format numbers. This would leave off the last few decimal positions.
System.out.printf("%10.5f\n", 1.8 + .09);
java(dot)sun(dot)com/j2se/1.5.0/docs/api/java/io/PrintStream.html#printf(java.lang.String,%20java.l ang.Object...)
Alan.
__________________
There are 10 types of people - those who understand binary and those who don't!!
Today is the Beta version of Tomorrow!!
|