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

Method negate

core/src/main/java/io/questdb/std/Decimal.java:109–109  ·  view source on GitHub ↗

Negates this decimal value in-place, changing its sign. If the decimal is positive, it becomes negative; if negative, it becomes positive. Zero remains zero. Null values remain null. Example: decimal.of(123, 2); // 1.23 decimal.negate(); // -1.23

()

Source from the content-addressed store, hash-verified

107 * </pre>
108 */
109 void negate();
110
111 /**
112 * Sets this decimal to {@code digits * 10^power}.

Callers 14

doubleToDecimalMethod · 0.95
testStaticNegateMethod · 0.65
testStaticNegateMethod · 0.65
outColBinDecimalMethod · 0.65
getDecimal128Method · 0.65
getDecimal256Method · 0.65
getDecimal128Method · 0.65
getDecimal256Method · 0.65
parseMethod · 0.65
negateMethod · 0.65
divideMethod · 0.65

Implementers 3

Decimal128core/src/main/java/io/questdb/std/Deci
Decimal256core/src/main/java/io/questdb/std/Deci
Decimal64core/src/main/java/io/questdb/std/Deci

Calls

no outgoing calls

Tested by 2

testStaticNegateMethod · 0.52
testStaticNegateMethod · 0.52