extended 0.1.0

Extended precision 80-bit floating-point numbers (f80).
Documentation
  • Coverage
  • 77.78%
    7 out of 9 items documented0 out of 6 items with examples
  • Size
  • Source code size: 14.12 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 498.17 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • depp/extended-rs
    6 1 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • depp

80-bit Extended-Precision Floating-Point Numbers

This is a Rust library that provides a type for representing 80-bit extended-precision floating-point numbers. It is licensed under the terms of the MIT license, see LICENSE.txt for details.

Rounding, Infinity, and NaN

This library uses round-to-even when converting from 80-bit floats to 64-bit floats. This should be what you’re used to, and what you expect! In round-to-even, when an 80-bit float is exactly half-way between two possible float64 values, the value with a zero in the least-significant bit is chosen (or the value with the larger exponent is chosen, if the values have different exponents).

Values which are outside the range of possible float64 values are rounded to infinity.

Infinity and NaN are preserved. Different types of NaN values are not distinguished from each other, but the sign of NaN values is preserved during conversion.