dotnet / dotnet/csharpstandard

9.2.7 (and 9.2.8): Floating point types and decimal

Open
#78 5 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

I have a pet peeve, that the C# spec refers to float and double as floating point types, but not decimal.

We _could_ fix this by referring to them as floating binary point types, and explicitly calling out that decimal is a floating decimal point type - or we could decide that I'm being way too picky.

(A little history to partly explain my obsession with this: before .NET 2.0, MSDN claimed that decimal was a fixed point type. It took many mails with a documentation maintainer back and forth to persuade them to change this. People _still_ refer to "floating point types" as being imprecise, but decimal being "accurate". It winds me up, and the spec isn't helping matters. Rant over :)

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.