From fa8b49749691eeb460641a773a3fa83d93c411ef Mon Sep 17 00:00:00 2001 From: Andrew Westberg Date: Wed, 25 Sep 2024 16:16:49 +0000 Subject: [PATCH] Update pallas-math/src/math.rs Co-authored-by: Nicolas Di Prima Signed-off-by: Andrew Westberg --- pallas-math/src/math.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pallas-math/src/math.rs b/pallas-math/src/math.rs index a530bd72..8f103b82 100644 --- a/pallas-math/src/math.rs +++ b/pallas-math/src/math.rs @@ -48,15 +48,19 @@ pub trait FixedPrecision: fn exp_cmp(&self, max_n: u64, bound_self: i64, compare: &Self) -> ExpCmpOrdering; /// Round to the nearest integer number + #[must_use] fn round(&self) -> Self; /// Round down to the nearest integer number + #[must_use] fn floor(&self) -> Self; /// Round up to the nearest integer number + #[must_use] fn ceil(&self) -> Self; /// Truncate to the nearest integer number + #[must_use] fn trunc(&self) -> Self; }