MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / floor

Method floor

vm/JavaAPI/src/java/lang/Math.java:75–75  ·  view source on GitHub ↗

Returns the largest (closest to positive infinity) double value that is not greater than the argument and is equal to a mathematical integer. Special cases: If the argument value is already equal to a mathematical integer, then the result is the same as the argument. If the argument is NaN or an inf

(double a)

Source from the content-addressed store, hash-verified

73 * Returns the largest (closest to positive infinity) double value that is not greater than the argument and is equal to a mathematical integer. Special cases: If the argument value is already equal to a mathematical integer, then the result is the same as the argument. If the argument is NaN or an infinity or positive zero or negative zero, then the result is the same as the argument.
74 */
75 public static native double floor(double a);
76
77 /**
78 * Returns the greater of two double values. That is, the result is the argument closer to positive infinity. If the arguments have the same value, the result is that same value. If either value is NaN, then the result is NaN. Unlike the the numerical comparison operators, this method considers negative zero to be strictly smaller than positive zero. If one argument is positive zero and the other negative zero, the result is positive zero.

Callers 15

downSampleMethod · 0.95
latLngToScreenMethod · 0.95
paintMethod · 0.95
drawLabelsMethod · 0.95
screenXMethod · 0.95
screenYMethod · 0.95
integerZoomMethod · 0.95
floorMethod · 0.95
isSolidAtMethod · 0.95
addFeatureMethod · 0.95
writeNumberMethod · 0.95
roundMethod · 0.95

Calls

no outgoing calls

Tested by 2

drawRGBMethod · 0.76