From f523f532e6ce11cac2c6037715bf0cc0f49edfd4 Mon Sep 17 00:00:00 2001 From: Yoan Lecoq Date: Sun, 3 Feb 2019 15:02:30 +0100 Subject: [PATCH] Update README --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d2ea0d0..2b9cbcb 100644 --- a/README.md +++ b/README.md @@ -31,10 +31,12 @@ the default `std` feature. Use this in `Cargo.toml`: [dependencies.num-traits] version = "0.2" 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 -`FloatCore` trait is always available. `MulAdd` and `MulAddAssign` for `f32` +The `Float` and `Real` traits are only available when either `std` or `libm` is enabled. + +The `FloatCore` trait is always available. `MulAdd` and `MulAddAssign` for `f32` and `f64` also require `std`, as do implementations of signed and floating- point exponents in `Pow`.