As in topic?
I’ve met this problem, when trying to implement generic from_deg
function:
impl<T> ExtFloat for T where T: Float {
fn from_deg(self) -> Self {
self * Float::pi() / 180.0
}
}
Now there is no generic way to get Π value. Only way I can think of is cast(f64::consts::PI)
which can be problematic with f128
and bigger numeric types.
Have I missed something or that possibility was removed?