| Crates.io | decompose-float |
| lib.rs | decompose-float |
| version | 0.1.0 |
| created_at | 2025-05-05 12:43:01.673521+00 |
| updated_at | 2025-05-05 12:43:01.673521+00 |
| description | decompose floating point numbers |
| homepage | |
| repository | https://github.com/baehyunsol/decompose_float |
| max_upload_size | |
| id | 1660661 |
| size | 25,047 |
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.