decompose-float 0.1.0

decompose floating point numbers
Documentation
  • Coverage
  • 23.08%
    3 out of 13 items documented0 out of 3 items with examples
  • Size
  • Source code size: 24.58 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.65 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • baehyunsol/decompose_float
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • baehyunsol

Decompose-Float

A simple library that decomposes floating point numbers and gives you { is_neg: bool, exp: i32, mantissa: u128 }. It supports f16 and f128 types via f16 and f128 features. The features are not enabled by default: you have to enable them if you need.

It handles subnormal numbers, infinities and NaNs correctly (I hope so).

If you want to use f16 or f128 feature, you have to use a nightly version of rust.