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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -