ieee754

Low-level manipulations of IEEE754 floating-point numbers.


Keywords
numerics, mathematics, floating-point, no_std, float, ieee754, numerical-analysis
Licenses
MIT/Apache-2.0

Documentation

ieee754

Build Status codecov

Low-level manipulations of IEEE754 floating-point numbers.

This library includes:

  • no_std support by default,
  • ulp computation (units in the last place, representing the resolution of a float),
  • miscellaneous functions like nextafter (next and prev), copysign (copy_sign), abs, sign,
  • the IEEE-754 totalOrder predicate for doing Ord::cmp-like comparisons on floats,
  • an iterator over every floating point value in a range,
  • a parallel iterator over every floating point value in a range (optional: activate with the rayon feature),
  • relative error computation.

Documentation, crates.io.