domoritz commented on PR #40729:
URL: https://github.com/apache/arrow/pull/40729#issuecomment-2021354217
We can get the scale from the type. I misunderstood how the scale works.
Thanks for the link that explained what I was missing.
```
const n3 = new BN(new Uint32Array([0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF,
0xFFFFFFFF]), true);
expect(n3.valueOf()).toBe(-1);
expect(n3.valueOf(1)).toBe(-0.1);
expect(n3.valueOf(2)).toBe(-0.01);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]