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

Method log

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

Source from the content-addressed store, hash-verified

466 }
467
468 private static Object log(
469 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {
470 double x = ScriptRuntime.toNumber(args, 0);
471 // Java's log(<0) = -Infinity; we need NaN
472 x = (x < 0) ? Double.NaN : Math.log(x);
473 return ScriptRuntime.wrapNumber(x);
474 }
475
476 private static Object log1p(
477 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {

Callers 14

acoshMethod · 0.80
asinhMethod · 0.80
atanhMethod · 0.80
log2Method · 0.80
testNativeLogFunction · 0.80
15.8.2.10.jsFile · 0.80
bnpChunkSizeFunction · 0.80
base.jsFile · 0.80
string-tagcloud.jsFile · 0.80
string-tagcloud.jsFile · 0.80

Calls 2

toNumberMethod · 0.95
wrapNumberMethod · 0.95