also update copysign docs
This commit is contained in:
parent
53d4544628
commit
0c7d6c45e6
@ -248,11 +248,11 @@ impl f128 {
|
|||||||
/// Returns a number composed of the magnitude of `self` and the sign of
|
/// Returns a number composed of the magnitude of `self` and the sign of
|
||||||
/// `sign`.
|
/// `sign`.
|
||||||
///
|
///
|
||||||
/// Equal to `self` if the sign of `self` and `sign` are the same, otherwise
|
/// Equal to `self` if the sign of `self` and `sign` are the same, otherwise equal to `-self`.
|
||||||
/// equal to `-self`. If `self` is a NaN, then a NaN with the sign bit of
|
/// If `self` is a NaN, then a NaN with the same payload as `self` and the sign bit of `sign` is
|
||||||
/// `sign` is returned. Note, however, that conserving the sign bit on NaN
|
/// returned. Note, however, that conserving the sign bit on NaN across arithmetical operations
|
||||||
/// across arithmetical operations is not generally guaranteed.
|
/// is not generally guaranteed. See [specification of NaN bit
|
||||||
/// See [explanation of NaN as a special value](primitive@f128) for more info.
|
/// patterns](primitive@f32#nan-bit-patterns) for more info.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
@ -247,11 +247,11 @@ impl f16 {
|
|||||||
/// Returns a number composed of the magnitude of `self` and the sign of
|
/// Returns a number composed of the magnitude of `self` and the sign of
|
||||||
/// `sign`.
|
/// `sign`.
|
||||||
///
|
///
|
||||||
/// Equal to `self` if the sign of `self` and `sign` are the same, otherwise
|
/// Equal to `self` if the sign of `self` and `sign` are the same, otherwise equal to `-self`.
|
||||||
/// equal to `-self`. If `self` is a NaN, then a NaN with the sign bit of
|
/// If `self` is a NaN, then a NaN with the same payload as `self` and the sign bit of `sign` is
|
||||||
/// `sign` is returned. Note, however, that conserving the sign bit on NaN
|
/// returned. Note, however, that conserving the sign bit on NaN across arithmetical operations
|
||||||
/// across arithmetical operations is not generally guaranteed.
|
/// is not generally guaranteed. See [specification of NaN bit
|
||||||
/// See [explanation of NaN as a special value](primitive@f16) for more info.
|
/// patterns](primitive@f32#nan-bit-patterns) for more info.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
@ -226,11 +226,11 @@ impl f32 {
|
|||||||
/// Returns a number composed of the magnitude of `self` and the sign of
|
/// Returns a number composed of the magnitude of `self` and the sign of
|
||||||
/// `sign`.
|
/// `sign`.
|
||||||
///
|
///
|
||||||
/// Equal to `self` if the sign of `self` and `sign` are the same, otherwise
|
/// Equal to `self` if the sign of `self` and `sign` are the same, otherwise equal to `-self`.
|
||||||
/// equal to `-self`. If `self` is a NaN, then a NaN with the sign bit of
|
/// If `self` is a NaN, then a NaN with the same payload as `self` and the sign bit of `sign` is
|
||||||
/// `sign` is returned. Note, however, that conserving the sign bit on NaN
|
/// returned. Note, however, that conserving the sign bit on NaN across arithmetical operations
|
||||||
/// across arithmetical operations is not generally guaranteed.
|
/// is not generally guaranteed. See [specification of NaN bit
|
||||||
/// See [explanation of NaN as a special value](primitive@f32) for more info.
|
/// patterns](primitive@f32#nan-bit-patterns) for more info.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
@ -226,11 +226,11 @@ impl f64 {
|
|||||||
/// Returns a number composed of the magnitude of `self` and the sign of
|
/// Returns a number composed of the magnitude of `self` and the sign of
|
||||||
/// `sign`.
|
/// `sign`.
|
||||||
///
|
///
|
||||||
/// Equal to `self` if the sign of `self` and `sign` are the same, otherwise
|
/// Equal to `self` if the sign of `self` and `sign` are the same, otherwise equal to `-self`.
|
||||||
/// equal to `-self`. If `self` is a NaN, then a NaN with the sign bit of
|
/// If `self` is a NaN, then a NaN with the same payload as `self` and the sign bit of `sign` is
|
||||||
/// `sign` is returned. Note, however, that conserving the sign bit on NaN
|
/// returned. Note, however, that conserving the sign bit on NaN across arithmetical operations
|
||||||
/// across arithmetical operations is not generally guaranteed.
|
/// is not generally guaranteed. See [specification of NaN bit
|
||||||
/// See [explanation of NaN as a special value](primitive@f32) for more info.
|
/// patterns](primitive@f32#nan-bit-patterns) for more info.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user