rust-conv icon indicating copy to clipboard operation
rust-conv copied to clipboard

Range inconsistency

Open Rufflewind opened this issue 8 years ago • 0 comments

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

  • 255.5 to 255
  • -255.5 to -255

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

Rufflewind avatar Feb 24 '17 04:02 Rufflewind