DanielKeep / rust-conv

Conversion traits for Rust
MIT License
48 stars 9 forks source link

Range inconsistency #11

Open Rufflewind opened 7 years ago

Rufflewind commented 7 years ago

The ranges of float-to-integer conversions appear to be inconsistent with all approximation schemes except RoundToNegInf. For example, consider RoundToZero, which rounds

Yet, despite this, -256.5 does not round to -256, but instead causes NegOverflow.