Update README

This commit is contained in:
Yoan Lecoq 2019-02-03 15:02:30 +01:00 committed by Josh Stone
parent b4558d1c49
commit f523f532e6
1 changed files with 4 additions and 2 deletions

View File

@ -31,10 +31,12 @@ the default `std` feature. Use this in `Cargo.toml`:
[dependencies.num-traits] [dependencies.num-traits]
version = "0.2" version = "0.2"
default-features = false default-features = false
# features = ["libm"] # <--- Uncomment if you wish to use `Float` and `Real`
``` ```
The `Float` and `Real` traits are only available when `std` is enabled. The The `Float` and `Real` traits are only available when either `std` or `libm` is enabled.
`FloatCore` trait is always available. `MulAdd` and `MulAddAssign` for `f32`
The `FloatCore` trait is always available. `MulAdd` and `MulAddAssign` for `f32`
and `f64` also require `std`, as do implementations of signed and floating- and `f64` also require `std`, as do implementations of signed and floating-
point exponents in `Pow`. point exponents in `Pow`.