Closed coreylowman closed 1 year ago
While certainly convenient, these weren't implemented for the same reasons From<f64>
isn't implemented for f32
: the loss of precision means making the conversion explicit is preferable, to avoid unexpected loss of precision. Instead, use num-traits
conversion traits for generic methods like this for f16
.
This adds from/into in the other way than is currently present, making the following code possible: