batteries icon indicating copy to clipboard operation
batteries copied to clipboard

feat: `Rat.toFloat`

Open digama0 opened this issue 1 year ago • 0 comments

This adds an implementation of exact (IEEE conforming) rounding from Rat to Float rounding nearest ties to even. Note that unlike most other lean functions (but like most float functions), division by zero results in Float.inf or Float.nan, not 0.

digama0 avatar Apr 18 '24 22:04 digama0