Crates.io | float-dbg |
lib.rs | float-dbg |
version | 0.4.0-alpha.1 |
source | src |
created_at | 2022-01-19 17:50:00.220741 |
updated_at | 2024-05-21 16:53:18.74848 |
description | Debug floating point numbers easily |
homepage | |
repository | https://github.com/FedericoStra/float-dbg |
max_upload_size | |
id | 516976 |
size | 13,164 |
Easily debug floating point numbers in Rust.
0.045_f32.explain()
value = 0.045
bits: 00111101001110000101000111101100
±^^^^^^^^_______________________
sign: +
exponent = 122 - 127 = -5
significand = 2^23 + 3690988 = 12079596