MCPcopy Create free account
hub / github.com/dynjs/dynjs / modulo

Method modulo

src/main/java/org/dynjs/runtime/Types.java:351–355  ·  view source on GitHub ↗
(long a, long b)

Source from the content-addressed store, hash-verified

349 }
350
351 public static long modulo(long a, long b) {
352 // because Java modulo doesn't deal with negatives the way the
353 // javascript spec assumes it should.
354 return (a % b + b) % b;
355 }
356
357 public static Long toInt32(ExecutionContext context, Object o) {
358 Number number = toNumber(context, o);

Callers 3

toUint16Method · 0.95
toUint32Method · 0.95
toInt32Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected