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

Method ceil

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

Source from the content-addressed store, hash-verified

183 }
184
185 private static Object ceil(
186 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {
187 double x = ScriptRuntime.toNumber(args, 0);
188 x = Math.ceil(x);
189 return ScriptRuntime.wrapNumber(x);
190 }
191
192 private static Object clz32(
193 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {

Callers 13

TimeClipMethod · 0.80
toIntegerMethod · 0.80
eqBigIntMethod · 0.80
truncMethod · 0.80
toIntegerMethod · 0.80
truncateMethod · 0.80
parse-int-float.jsFile · 0.80
xFunction · 0.80
15.8.2.6.jsFile · 0.80
15.8.2.9.jsFile · 0.80
AESEncryptCtrFunction · 0.80

Calls 2

toNumberMethod · 0.95
wrapNumberMethod · 0.95

Tested by

no test coverage detected