Skip to content

Commit

Permalink
Update pallas-math/src/math.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Di Prima <[email protected]>
Signed-off-by: Andrew Westberg <[email protected]>
  • Loading branch information
AndrewWestberg and NicolasDP authored Sep 25, 2024
1 parent 6717cf1 commit fa8b497
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pallas-math/src/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit fa8b497

Please sign in to comment.