projects
/
vector-math.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use round_to_nearest_ties_to_even to implement round
[vector-math.git]
/
src
/
scalar.rs
diff --git
a/src/scalar.rs
b/src/scalar.rs
index c1a1ec94c2b59608d8bd40476670185aa5734434..3011df707fc97c6e31cdcb430d504652c7cea0d5 100644
(file)
--- a/
src/scalar.rs
+++ b/
src/scalar.rs
@@
-380,7
+380,7
@@
macro_rules! impl_float {
#[cfg(feature = "std")]
return Value(self.0.round());
#[cfg(not(feature = "std"))]
-
todo!(
);
+
return crate::algorithms::base::round_to_nearest_ties_to_even(Scalar, self
);
}
#[cfg(feature = "fma")]
fn fma(self, a: Self, b: Self) -> Self {