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

Method ofLong

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

Set this Decimal256 from a long value with the specified scale. @param value the long value @param scale the desired scale

(long value, int scale)

Source from the content-addressed store, hash-verified

1503 * @param scale the desired scale
1504 */
1505 public void ofLong(long value, int scale) {
1506 validateScale(scale);
1507
1508 this.scale = scale;
1509 this.ll = value;
1510 final long s = value < 0 ? -1L : 0L;
1511 this.lh = s;
1512 this.hl = s;
1513 this.hh = s;
1514 }
1515
1516 /**
1517 * Set this Decimal256 to the null value.

Callers 6

testStoreRowMethod · 0.95
newConstantInstanceMethod · 0.95
newConstantInstanceMethod · 0.95
newConstantInstanceMethod · 0.95
fromLongMethod · 0.95

Calls 1

validateScaleMethod · 0.95

Tested by 2

testStoreRowMethod · 0.76