7 ms·
It's not being validated. Validation and tests involving large numbers need to be added.
by partycoder 8y ago
It's not being validated. Validation and tests involving large numbers need to be added.
- alkonaut 8y agoI didn’t look at the details of this specific library (which I expect is even more complex than just using the exact integers of ieee754). But yes - in order to properly use the exact integers, the number would have to be encapsulated in an object and validated (range, dropping decimals, returning optional values for things that might fail etc). You can not just take two “Number” and use for proper decimal math without enforcing some invariants.