how to Round off Floats in Java
can anyone tell me how to round off the values..
lich
Junior Poster in Training
79 posts since May 2008
Reputation Points: -1
Solved Threads: 4
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711
what i want is this
lets say 2.44534
i want to get it to
2.44
any idea how.. please help me
lich
Junior Poster in Training
79 posts since May 2008
Reputation Points: -1
Solved Threads: 4
what i want is this
lets say 2.44534
i want to get it to
2.44
any idea how.. please help me
Put that in the original post. We have absolutely no way of knowing that's what you want if you don't tell us, so tell us right away so we don't have to guess. That's also rounding down, not rounding off.
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711