Every crypto amount enters a system as a string: a form field, a JSON body from an exchange API, a row in a payout file, a webhook from a provider. Between that string and the ledger two decisions get made: whether the amount is representable in the asset at all, and what happens when it is not....
Source: [Dev.to](https://dev.to/polycratia/parse-crypto-amounts-like-hostile-input-declare-rounding-first-2df3)