Update math_ext.rs

This commit is contained in:
Viktor Zoutman 2020-11-16 21:24:35 +01:00 committed by GitHub
parent ec89ddf446
commit a841cc845f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ impl MathExt for f32 {
}
fn fract(self) -> f32 {
self - self.trunc()
self - self.floor()
}
fn signum(self) -> f32 {