@@ -689,7 +689,7 @@ impl f32 {
689689 self * ( value / 180.0f32 )
690690 }
691691
692- /// Returns the maximum of the two numbers.
692+ /// Returns the maximum of the two numbers, ignoring NaN .
693693 ///
694694 /// If one of the arguments is NaN, then the other argument is returned.
695695 /// This follows the IEEE-754 2008 semantics for maxNum, except for handling of signaling NaNs;
@@ -709,7 +709,7 @@ impl f32 {
709709 intrinsics:: maxnumf32 ( self , other)
710710 }
711711
712- /// Returns the minimum of the two numbers.
712+ /// Returns the minimum of the two numbers, ignoring NaN .
713713 ///
714714 /// If one of the arguments is NaN, then the other argument is returned.
715715 /// This follows the IEEE-754 2008 semantics for minNum, except for handling of signaling NaNs;
@@ -729,7 +729,7 @@ impl f32 {
729729 intrinsics:: minnumf32 ( self , other)
730730 }
731731
732- /// Returns the maximum of the two numbers.
732+ /// Returns the maximum of the two numbers, propagating NaN .
733733 ///
734734 /// This returns NaN when *either* argument is NaN, as opposed to
735735 /// [`f32::max`] which only returns NaN when *both* arguments are NaN.
@@ -746,6 +746,9 @@ impl f32 {
746746 /// If one of the arguments is NaN, then NaN is returned. Otherwise this returns the greater
747747 /// of the two numbers. For this operation, -0.0 is considered to be less than +0.0.
748748 /// Note that this follows the semantics specified in IEEE 754-2019.
749+ ///
750+ /// Also note that "propagation" of NaNs here doesn't mean that the bitpattern of a NaN operand
751+ /// is necessarily conserved; see [explanation of NaN as a special value](f32) for more info.
749752 #[ must_use = "this returns the result of the comparison, without modifying either input" ]
750753 #[ unstable( feature = "float_minimum_maximum" , issue = "91079" ) ]
751754 #[ inline]
@@ -761,7 +764,7 @@ impl f32 {
761764 }
762765 }
763766
764- /// Returns the minimum of the two numbers.
767+ /// Returns the minimum of the two numbers, propagating NaN .
765768 ///
766769 /// This returns NaN when *either* argument is NaN, as opposed to
767770 /// [`f32::min`] which only returns NaN when *both* arguments are NaN.
@@ -778,6 +781,9 @@ impl f32 {
778781 /// If one of the arguments is NaN, then NaN is returned. Otherwise this returns the lesser
779782 /// of the two numbers. For this operation, -0.0 is considered to be less than +0.0.
780783 /// Note that this follows the semantics specified in IEEE 754-2019.
784+ ///
785+ /// Also note that "propagation" of NaNs here doesn't mean that the bitpattern of a NaN operand
786+ /// is necessarily conserved; see [explanation of NaN as a special value](f32) for more info.
781787 #[ must_use = "this returns the result of the comparison, without modifying either input" ]
782788 #[ unstable( feature = "float_minimum_maximum" , issue = "91079" ) ]
783789 #[ inline]
0 commit comments