diff options
| author | Pyry Kontio <pyry.kontio@drasa.eu> | 2022-03-31 18:18:10 +0900 |
|---|---|---|
| committer | Pyry Kontio <pyry.kontio@drasa.eu> | 2022-03-31 18:18:10 +0900 |
| commit | 21f1037c5846f1c796699dcbc2cdf38c663210e1 (patch) | |
| tree | 76eed6611774be6443e3fad8346973825f445fc8 | |
| parent | 57eec0ce13951bdd124e5c896f82fa2b74b9d913 (diff) | |
| download | rust-21f1037c5846f1c796699dcbc2cdf38c663210e1.tar.gz rust-21f1037c5846f1c796699dcbc2cdf38c663210e1.zip | |
Further refine the disclaimer about NaN bit patterns.
| -rw-r--r-- | library/core/src/primitive_docs.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/library/core/src/primitive_docs.rs b/library/core/src/primitive_docs.rs index ab4bb0f2669..ac4e668112b 100644 --- a/library/core/src/primitive_docs.rs +++ b/library/core/src/primitive_docs.rs @@ -989,8 +989,9 @@ mod prim_tuple {} /// is deviated from. /// - Lastly, there are multiple bit patterns that are considered NaN. /// Rust does not currently guarantee that the bit patterns of NaN are -/// preserved over arithmetic operations, -/// so there may be some surprising results upon inspecting the bit patterns, +/// preserved over arithmetic operations, and they are not guaranteed to be +/// portable or even fully deterministic! This means that there may be some +/// surprising results upon inspecting the bit patterns, /// as the same calculations might produce NaNs with different bit patterns. /// /// For more information on floating point numbers, see [Wikipedia][wikipedia]. |
