dotnet / dotnet/csharpstandard

9.2.8 Overflow exceptions when converting *from* decimal?

Open
#79 9 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.