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

Method modulo

core/src/main/java/io/questdb/std/Decimal128.java:487–490  ·  view source on GitHub ↗

Calculate modulo of two Decimal128 numbers and store the result in sink (a % b -> sink) @param a First operand (dividend) @param b Second operand (divisor) @param sink Destination for the result

(Decimal128 a, Decimal128 b, Decimal128 sink)

Source from the content-addressed store, hash-verified

485 * @param sink Destination for the result
486 */
487 public static void modulo(Decimal128 a, Decimal128 b, Decimal128 sink) {
488 sink.copyFrom(a);
489 sink.modulo(b);
490 }
491
492 /**
493 * Multiply two Decimal128 numbers and store the result in sink

Callers 9

testInPlaceModuloMethod · 0.95
testModuloByZeroMethod · 0.95
testModuloNegativeMethod · 0.95
testModuloSimpleMethod · 0.95
testStaticModuloMethod · 0.95
testModuloAccuracyMethod · 0.95

Calls 8

instanceMethod · 0.95
divideMethod · 0.95
multiplyMethod · 0.95
ofMethod · 0.95
subtractMethod · 0.95
rescale0Method · 0.95
copyFromMethod · 0.65
putMethod · 0.65

Tested by 9

testInPlaceModuloMethod · 0.76
testModuloByZeroMethod · 0.76
testModuloNegativeMethod · 0.76
testModuloSimpleMethod · 0.76
testStaticModuloMethod · 0.76
testModuloAccuracyMethod · 0.76