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

Method add

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

Add two Decimal128 numbers and store the result in sink @param a First operand @param b Second operand @param sink Destination for the result

(Decimal128 a, Decimal128 b, Decimal128 sink)

Source from the content-addressed store, hash-verified

252 * @param sink Destination for the result
253 */
254 public static void add(Decimal128 a, Decimal128 b, Decimal128 sink) {
255 sink.copyFrom(a);
256 sink.add(b);
257 }
258
259 /**
260 * Compares 2 Decimal128, ignoring scaling.

Callers 13

testAddOverflowMethod · 0.95
testAddRescaleBMethod · 0.95
testAddZeroMaxValueMethod · 0.95
testCompareToMinValueMethod · 0.95
testInPlaceAdditionMethod · 0.95
testScaleHandlingMethod · 0.95
testStaticAddMethod · 0.95
testAdditionAccuracyMethod · 0.95

Calls 7

hasCarryMethod · 0.95
instanceMethod · 0.95
copyFromMethod · 0.65
addMethod · 0.65
putMethod · 0.65
rescale0Method · 0.45
hasOverflowedMethod · 0.45

Tested by 12

testAddOverflowMethod · 0.76
testAddRescaleBMethod · 0.76
testAddZeroMaxValueMethod · 0.76
testCompareToMinValueMethod · 0.76
testInPlaceAdditionMethod · 0.76
testScaleHandlingMethod · 0.76
testStaticAddMethod · 0.76
testAdditionAccuracyMethod · 0.76