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

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -