Skip to content

Commit 2793ea8

Browse files
authored
Some return values for MathF.Pow() are wrong (#9571)
1 parent 6481f01 commit 2793ea8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xml/System/MathF.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,8 +1657,9 @@ The value of this field is 3.14159274.
16571657
16581658
|Parameters|Return value|
16591659
|----------------|------------------|
1660-
|`x` or `y` = `NaN`.|`NaN`|
1661-
|`x` = Any value except `NaN`; `y` = 0.|1|
1660+
|`x` is any value; `y` = 0.|1|
1661+
|`x` = 1; `y` is any value.|1|
1662+
|`x` or `y` = `NaN` (except if `y` = 0 or `x` = 1).|`NaN`|
16621663
|`x` = `NegativeInfinity`; `y` < 0.|0|
16631664
|`x` = `NegativeInfinity`; `y` is a positive odd integer.|`NegativeInfinity`|
16641665
|`x` = `NegativeInfinity`; `y` is positive but not an odd integer.|`PositiveInfinity`|
@@ -1670,7 +1671,6 @@ The value of this field is 3.14159274.
16701671
|`x` < -1 or `x` > 1; `y` = `PositiveInfinity`.|`PositiveInfinity`|
16711672
|`x` = 0; `y` < 0.|`PositiveInfinity`|
16721673
|`x` = 0; `y` > 0.|0|
1673-
|`x` = 1; `y` is any value except `NaN`.|1|
16741674
|`x` = `PositiveInfinity`; `y` < 0.|0|
16751675
|`x` = `PositiveInfinity`; `y` > 0.|`PositiveInfinity`|
16761676

0 commit comments

Comments
 (0)