|
-
May 28th, 2001, 08:27 PM
#7
Integer Division versus Floating (Decimal) Point Division
int i=1, j=3;
(i/j == 0) not 0.3333etc.
Try "float" for totalUnits and units[].
Dilenger4,
I think he's calling the inherited method
public final String format(double number)
from java.text.NumberFormat
and I just noticed that you metioned integer versus floating point division.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|