huonw / ieee754

Low-level manipulations of IEEE754 floating-point numbers.

Home Page:https://docs.rs/ieee754

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Low-level manipulations of IEEE754 floating-point numbers.

https://docs.rs/ieee754

License:Apache License 2.0


Languages

Language:Rust 98.5%Language:Shell 1.5%