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

Method subtract

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

Static subtraction 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

738 * @throws NumericException if overflow occurs
739 */
740 public static void subtract(Decimal256 a, Decimal256 b, Decimal256 result) {
741 result.copyFrom(a);
742 result.subtract(b);
743 }
744
745 public static @NotNull BigDecimal toBigDecimal(long hh, long hl, long lh, long ll, int scale) {
746 // Convert 256-bit value to BigInteger

Callers 7

testStaticSubtractMethod · 0.95
testSubtractionNullMethod · 0.95
testToStringMaxScaleMethod · 0.95
moduloMethod · 0.95

Calls 4

isNullMethod · 0.95
ofNullMethod · 0.95
addMethod · 0.95
copyFromMethod · 0.65

Tested by 6

testStaticSubtractMethod · 0.76
testSubtractionNullMethod · 0.76
testToStringMaxScaleMethod · 0.76