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

Method setScale

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

Sets the scale directly without performing any rescaling operations on the underlying value. Warning: This is a low-level operation that changes only the scale metadata without adjusting the stored value. This effectively multiplies or divides the represented number by a power of 10. Use

(int scale)

Source from the content-addressed store, hash-verified

158 * @param scale the new scale (number of decimal places)
159 */
160 void setScale(int scale);
161
162 /**
163 * Converts this decimal to a Decimal256 representation.

Callers 15

assertAvgMethod · 0.65
assertSumMethod · 0.65
getDecimal128Method · 0.65
getDecimal256Method · 0.65
testRoundAllModesMethod · 0.65
testRoundFuzzMethod · 0.65
testRoundZeroMethod · 0.65
testRoundFuzzMethod · 0.65
testAllModesMethod · 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 15

assertAvgMethod · 0.52
assertSumMethod · 0.52
getDecimal128Method · 0.52
getDecimal256Method · 0.52
testRoundAllModesMethod · 0.52
testRoundFuzzMethod · 0.52
testRoundZeroMethod · 0.52
testRoundFuzzMethod · 0.52
testAllModesMethod · 0.52