dotnet / dotnet/csharpstandard
9.2.8 Overflow exceptions when converting *from* decimal?
Open
type: clarity
- Dominant language
- C#
- Stars
- 815
- Forks
- 99
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 16
Description
10.2.8 includes:
> and conversions from decimal to the floating-point types might cause loss of precision or overflow exceptions.
Given that the range of each of float and double is greater than the range of decimal, I can't see how a conversion from decimal to float or double could cause an overflow.
I propose we remove "or overflow exceptions".
Contributor guide
Assessment
This issue has not been assessed yet.