• V
    Use constant for 180/π in to_degrees · e34c31bf
    varkor 提交于
    The current `f32|f64.to_degrees` implementation uses a division to calculate 180/π, which causes a loss of precision. Using a constant is still not perfect (implementing a maximally-precise algorithm would come with a high performance cost), but improves precision with a minimal change.
    e34c31bf
f64.rs 10.2 KB