If the argument is nan or an infinity or positive zero or negative zero then the result is the same as the argument.
Java math round floor.
The java lang math floor double a returns the largest closest to positive infinity double value that is less than or equal to the argument and is equal to a mathematical integer.
J a v a 2 s.
C o m public class.
Round ceil floor a value in java description.
If the argument value is already equal to a mathematical integer then the result is the same as the argument.
Java math abs round ceil floor min methods with example java has had several advanced usage application including working with complex calculations in physics architecture designing of structures working with maps and corresponding latitudes longitudes etc.
The following code shows how to round ceil floor a value.
Example f r o m w w w.
The java lang math floor is used to find the largest integer value which is less than or equal to the argument and is equal to the mathematical integer of a double value.
This method is used to return the closest long to the argument with ties rounding to positive infinity.