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

Method modulo

core/src/main/java/io/questdb/std/Decimal256.java:696–699  ·  view source on GitHub ↗

Static modulo method. @param dividend the dividend @param divisor the divisor @param result the result @throws NumericException if division by zero occurs

(Decimal256 dividend, Decimal256 divisor, Decimal256 result)

Source from the content-addressed store, hash-verified

694 * @throws NumericException if division by zero occurs
695 */
696 public static void modulo(Decimal256 dividend, Decimal256 divisor, Decimal256 result) {
697 result.copyFrom(dividend);
698 result.modulo(divisor);
699 }
700
701 /**
702 * Static multiplication method.

Callers 10

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

Calls 10

isNullMethod · 0.95
ofNullMethod · 0.95
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 10

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