qfpl / dollaridoos

A typesafe wrapper around monetary values represented as numeric values, allowing only sensible operations.
BSD 3-Clause "New" or "Revised" License
14 stars 1 forks source link

probably need a warning about over/underflowing bounded types #10

Open frasertweedale opened 2 years ago

frasertweedale commented 2 years ago

Operations in dollaridoos blindly defer to the numeric operations upon the wrapped type. For bounded numeric types, this can result in overflow or underflow errors.

As this library is designed for safer and more correct monetary computations, it would be proper to caution the user regarding use with bounded types.