MCPcopy Create free account
hub / github.com/mozilla/rhino / floor

Method floor

rhino/src/main/java/org/mozilla/javascript/NativeMath.java:262–267  ·  view source on GitHub ↗
(
            Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args)

Source from the content-addressed store, hash-verified

260 }
261
262 private static Object floor(
263 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {
264 double x = ScriptRuntime.toNumber(args, 0);
265 x = Math.floor(x);
266 return ScriptRuntime.wrapNumber(x);
267 }
268
269 private static Object f16round(
270 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {

Callers 15

JDFunction · 0.80
ieFunction · 0.80
VFunction · 0.80
DayMethod · 0.80
DayFromYearMethod · 0.80
YearFromTimeMethod · 0.80
HourFromTimeMethod · 0.80
MinFromTimeMethod · 0.80
SecFromTimeMethod · 0.80
MakeDayMethod · 0.80
TimeClipMethod · 0.80

Calls 2

toNumberMethod · 0.95
wrapNumberMethod · 0.95

Tested by 5

testFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testFunction · 0.64