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

Method negate

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

Negate a Decimal128 number and store the result in sink @param a Input operand to negate @param sink Destination for the result

(Decimal128 a, Decimal128 sink)

Source from the content-addressed store, hash-verified

508 * @param sink Destination for the result
509 */
510 public static void negate(Decimal128 a, Decimal128 sink) {
511 sink.copyFrom(a);
512 sink.negate();
513 }
514
515 public static void put(Decimal128 d, long addr) {
516 put(d.high, d.low, addr);

Callers 8

setSignedDecimal128Method · 0.95
testNegateNullMethod · 0.95
testStaticNegateMethod · 0.95
divideMethod · 0.95
roundMethod · 0.95
multiplyMethod · 0.95
rescale0Method · 0.95

Calls 3

isNullMethod · 0.95
copyFromMethod · 0.65
negateMethod · 0.65

Tested by 4

setSignedDecimal128Method · 0.76
testNegateNullMethod · 0.76
testStaticNegateMethod · 0.76