I 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.
You can not just take two “Number” and use for proper decimal math without enforcing some invariants.