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

Method add

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

Static addition method. @param a the first operand @param b the second operand @param result the result (can be the same as a or b for in-place operation) @throws NumericException if overflow occurs

(Decimal256 a, Decimal256 b, Decimal256 result)

Source from the content-addressed store, hash-verified

279 * @throws NumericException if overflow occurs
280 */
281 public static void add(Decimal256 a, Decimal256 b, Decimal256 result) {
282 result.copyFrom(a);
283 result.add(b);
284 }
285
286 /**
287 * Compares 2 Decimal256, ignoring scaling.

Callers 10

testAddOverflowMethod · 0.95
testAddRescaleBMethod · 0.95
testAdditionNullMethod · 0.95
testAdditionNullOtherMethod · 0.95
testAdditionOverflowMethod · 0.95
testInPlaceAdditionMethod · 0.95
testStaticAddMethod · 0.95
testAdditionAccuracyMethod · 0.95
subtractMethod · 0.95

Calls 10

isNullMethod · 0.95
ofNullMethod · 0.95
hasCarryMethod · 0.95
instanceMethod · 0.95
copyFromMethod · 0.65
addMethod · 0.65
ofMethod · 0.65
putMethod · 0.65
rescale0Method · 0.45
hasOverflowedMethod · 0.45

Tested by 9

testAddOverflowMethod · 0.76
testAddRescaleBMethod · 0.76
testAdditionNullMethod · 0.76
testAdditionNullOtherMethod · 0.76
testAdditionOverflowMethod · 0.76
testInPlaceAdditionMethod · 0.76
testStaticAddMethod · 0.76
testAdditionAccuracyMethod · 0.76