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

Method negate

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

Negates this Decimal256 in-place using two's complement arithmetic. Changes the sign of the decimal number (positive becomes negative and vice versa).

()

Source from the content-addressed store, hash-verified

1432 * Changes the sign of the decimal number (positive becomes negative and vice versa).
1433 */
1434 public void negate() {
1435 if (isNull()) {
1436 return;
1437 }
1438 negateNonNull();
1439 }
1440
1441 /**
1442 * Negates this Decimal256 in-place using two's complement arithmetic.

Callers 8

setSignedDecimal256Method · 0.95
testNegateNullMethod · 0.95
testStaticNegateMethod · 0.95
testStorageSizeBasicMethod · 0.95
fromBigDecimalMethod · 0.95
multiplyMethod · 0.95

Calls 2

isNullMethod · 0.95
negateNonNullMethod · 0.95

Tested by 6

setSignedDecimal256Method · 0.76
testNegateNullMethod · 0.76
testStaticNegateMethod · 0.76
testStorageSizeBasicMethod · 0.76