Skip to content

Commit 9d667a3

Browse files
committed
feedback from tanner
1 parent bba07b7 commit 9d667a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xml/System/Double.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1860,7 +1860,9 @@
18601860
[!code-csharp[System.Double.Parse#3](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Double.Parse/cs/parse2.cs#3)]
18611861
[!code-vb[System.Double.Parse#3](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Double.Parse/vb/parse2.vb#3)]
18621862
1863-
If `s` is out of range of the <xref:System.Double> data type, the method throws an <xref:System.OverflowException> on .NET Framework and .NET Core 2.2 and earlier versions. On .NET Core 3.0 and later versions, it returns <xref:System.Double.NegativeInfinity?displayProperty=nameWithType> if `s` is less than <xref:System.Double.MinValue?displayProperty=nameWithType> and <xref:System.Double.PositiveInfinity?displayProperty=nameWithType> if `s` is greater than <xref:System.Double.MaxValue?displayProperty=nameWithType>.
1863+
If `s` is out of range of the <xref:System.Double> data type, the method throws an <xref:System.OverflowException> on .NET Framework and .NET Core 2.2 and earlier versions. On .NET Core 3.0 and later versions, if `s` is greater than `double.MaxValue + (double.MaxValue - Math.BitDecrement(double.MaxValue))`, or approximately 1.7976931348623159E+308, the method returns <xref:System.Double.PositiveInfinity?displayProperty=nameWithType>. If `s` is greater than <xref:System.Double.MaxValue?displayProperty=nameWithType> but less than `double.MaxValue + (double.MaxValue - Math.BitDecrement(double.MaxValue))`, the method returns <xref:System.Double.MaxValue?displayProperty=nameWithType>. If `s` is less than `double.MinValue - (double.MinValue - Math.BitDecrement(double.MinValue))`, or approximately -1.7976931348623159E+308, the method returns <xref:System.Double.NegativeInfinity?displayProperty=nameWithType>. If `s` is less than <xref:System.Double.MinValue?displayProperty=nameWithType> but greater than `double.MinValue - (double.MinValue - Math.BitDecrement(double.MinValue))`, the method returns <xref:System.Double.MinValue?displayProperty=nameWithType>.
1864+
1865+
it returns <xref:System.Double.NegativeInfinity?displayProperty=nameWithType> if `s` is less than <xref:System.Double.MinValue?displayProperty=nameWithType> and <xref:System.Double.PositiveInfinity?displayProperty=nameWithType> if `s` is greater than <xref:System.Double.MaxValue?displayProperty=nameWithType>.
18641866
18651867
If a separator is encountered in the `s` parameter during a parse operation, and the applicable currency or number decimal and group separators are the same, the parse operation assumes that the separator is a decimal separator rather than a group separator. For more information about separators, see <xref:System.Globalization.NumberFormatInfo.CurrencyDecimalSeparator%2A>, <xref:System.Globalization.NumberFormatInfo.NumberDecimalSeparator%2A>, <xref:System.Globalization.NumberFormatInfo.CurrencyGroupSeparator%2A>, and <xref:System.Globalization.NumberFormatInfo.NumberGroupSeparator%2A>.
18661868

0 commit comments

Comments
 (0)