- Notifications
You must be signed in to change notification settings - Fork157
Numeric traits for generic mathematics in Rust
License
Apache-2.0, MIT licenses found
Licenses found
rust-num/num-traits
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Numeric traits for generic mathematics in Rust.
Add this to yourCargo.toml:
[dependencies]num-traits ="0.2"
This crate can be used without the standard library (#![no_std]) by disablingthe defaultstd feature. Use this inCargo.toml:
[dependencies.num-traits]version ="0.2"default-features =false# features = ["libm"] # <--- Uncomment if you wish to use `Float` and `Real` without `std`
TheFloat andReal traits are only available when eitherstd orlibm is enabled.
TheFloatCore trait is always available.MulAdd andMulAddAssign forf32andf64 also requirestd orlibm, as do implementations of signed and floating-point exponents inPow.
Release notes are available inRELEASES.md.
Thenum-traits crate is tested for rustc 1.60 and greater.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submittedfor inclusion in the work by you, as defined in the Apache-2.0 license, shall bedual licensed as above, without any additional terms or conditions.
About
Numeric traits for generic mathematics in Rust
Topics
Resources
License
Apache-2.0, MIT licenses found
Licenses found
Uh oh!
There was an error while loading.Please reload this page.