Further refine the disclaimer about NaN bit patterns.
This commit is contained in:
parent
57eec0ce13
commit
21f1037c58
@ -989,8 +989,9 @@ mod prim_tuple {}
|
|||||||
/// is deviated from.
|
/// is deviated from.
|
||||||
/// - Lastly, there are multiple bit patterns that are considered NaN.
|
/// - Lastly, there are multiple bit patterns that are considered NaN.
|
||||||
/// Rust does not currently guarantee that the bit patterns of NaN are
|
/// Rust does not currently guarantee that the bit patterns of NaN are
|
||||||
/// preserved over arithmetic operations,
|
/// preserved over arithmetic operations, and they are not guaranteed to be
|
||||||
/// so there may be some surprising results upon inspecting the bit patterns,
|
/// 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.
|
/// as the same calculations might produce NaNs with different bit patterns.
|
||||||
///
|
///
|
||||||
/// For more information on floating point numbers, see [Wikipedia][wikipedia].
|
/// For more information on floating point numbers, see [Wikipedia][wikipedia].
|
||||||
|
Loading…
x
Reference in New Issue
Block a user