Skip to content

Commit

Permalink
Merge pull request #681 from olgabot/patch-1
Browse files Browse the repository at this point in the history
Add explanation of how to enable `maths` feature
  • Loading branch information
Tony-Samuels authored Oct 9, 2024
2 parents 7ae131e + 03f2c29 commit fa88579
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/maths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ const FACTORIAL: [Decimal; 28] = [
];

/// Trait exposing various mathematical operations that can be applied using a Decimal. This is only
/// present when the `maths` feature has been enabled.
/// present when the `maths` feature has been enabled, e.g. by adding the crate with
// `cargo add rust_decimal --features maths` and importing in your Rust file with `use rust_decimal::MathematicalOps;`
pub trait MathematicalOps {
/// The estimated exponential function, e<sup>x</sup>. Stops calculating when it is within
/// tolerance of roughly `0.0000002`.
Expand Down

0 comments on commit fa88579

Please sign in to comment.