paupino / rust-decimal

Decimal number implementation written in pure Rust suitable for financial and fixed-precision calculations.
https://docs.rs/rust_decimal/
MIT License
1.03k stars 182 forks source link

Add explanation of how to enable `maths` feature #681

Closed olgabot closed 1 month ago

olgabot commented 1 month ago

Hello, I hope you are doing well! I am relatively new to Rust, and was trying to use MathematicalOps from this crate (https://github.com/sourmash-bio/sourmash_plugin_branchwater/pull/458), but I could not for the life of me figure out how to "enable the maths feature" as mentioned in the documentation. I was finally able to see an example of how to do it after reading this PR comment: https://github.com/paupino/rust-decimal/issues/431#issuecomment-939069965

This PR adds a bit more text to the MathematicalOps documentation to help future users more quickly be able to use stably computed logarithms!

Warmest, Olga

Tony-Samuels commented 1 month ago

Thank you for the contribution. Please can you run cargo fmt over the changes?

olgabot commented 1 month ago

Thank you for the contribution. Please can you run cargo fmt over the changes?

Done!