JeffreySarnoff / SaferIntegers.jl

These integer types use checked arithmetic, otherwise they are as system types.
MIT License
59 stars 9 forks source link

Update README.md #40

Closed timholy closed 8 months ago

timholy commented 1 year ago

The README uses the term "underflow" incorrectly: underflow is essentially rounding, when rounding loses bits. "overflow" includes going below the minimum representable value.

Fixed-point arithmetic can underflow whenever you're adding two numbers with different precision and want to represent the output with the coarser precision. It's not relevant for integer arithmetic because all integers act like fixed-point numbers with the decimal place just after the 1 position.

Here are links to two relevant wikipedia pages: