F
Fred
I received some help here a week ago about rounding up numbers using
Math.ceil. Unfortunately it turns out that I need to round up/down numbers
to their nearest integer.
Example 107200.01 needs to be rounded down to 107200.
107200.99 neads to be rounded up to 107201.
Is there any way to accomplish this?
Original code:
MPoriginalFormat2= (int) Math.ceil(MPoriginalFormat);
Math.ceil. Unfortunately it turns out that I need to round up/down numbers
to their nearest integer.
Example 107200.01 needs to be rounded down to 107200.
107200.99 neads to be rounded up to 107201.
Is there any way to accomplish this?
Original code:
MPoriginalFormat2= (int) Math.ceil(MPoriginalFormat);