How to decode and encode a float in Rust?
<p>I want to decode, store and encode a float in Rust. I know about <a href="https://docs.rs/num/0.1.36/num/trait.Float.html#tymethod.integer_decode" rel="nofollow"><code>num::Float::integer_decode()</code></a> but I'd rather not lose <em>any</em> precision. That is, unless the format I encode into is smaller than the format I encode from of course.</p>