rust-num / num-traits

Numeric traits for generic mathematics in Rust
Apache License 2.0
731 stars 135 forks source link

no Float::to_bits() #129

Open nestordemeure opened 5 years ago

nestordemeure commented 5 years ago

Primitive floats types have a to_bits method that is however not implemented by the Float trait.

The one difficulty is that, in the standard implementations, the number of bits of the output differs from one type to another (32 for f32 and 64 for f64).