decompose-float

Crates.iodecompose-float
lib.rsdecompose-float
version0.1.0
created_at2025-05-05 12:43:01.673521+00
updated_at2025-05-05 12:43:01.673521+00
descriptiondecompose floating point numbers
homepage
repositoryhttps://github.com/baehyunsol/decompose_float
max_upload_size
id1660661
size25,047
(baehyunsol)

documentation

README

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.

Commit count: 2

cargo fmt