methods - What is the difference between round() and ceil() in java -
this question has answer here:
i wondering may difference between 2 methods round() , ceil() in package math in java , why don't return integer?
math.round underspecified, , believe behavior has changed in past -- see http://bugs.java.com/view_bug.do?bug_id=6430675 -- speaking behaves roundingmode.half_up, has extensive table of differences roundingmode.ceiling or roundingmode.floor.
Comments
Post a Comment