aopp-pred / rpe

An emulator for reduced floating-point precision written in Fortran.
http://rpe.readthedocs.io/
Apache License 2.0
9 stars 8 forks source link

IEEE compliant rounding. #2

Closed ajdawson closed 8 years ago

ajdawson commented 8 years ago

The code currently misses a special case from the IEEE floating-point standard. We might want to implement a "round to nearest, ties to even" rounding scheme to reduce rounding bias. This scheme affects the rounding of values that are exactly half-way between two representations, and makes sure the result is even after rounding (the least significant bit of the result should be 0).

ajdawson commented 8 years ago

Implemented as optional flag on master branch ready for a v4.x release, and can be back-ported to v3.x. Eventually the option should become default (and perhaps the old behaviour unsupported).