-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>.
0 commit comments