Skip to content

Commit

Permalink
Update exercises/concept/interest-is-interesting/.docs/introduction.md
Browse files Browse the repository at this point in the history
Integrate review feedback.

Co-authored-by: Jeremy Walker <jez.walker@gmail.com>
  • Loading branch information
NateEag and iHiD authored Dec 4, 2024
1 parent e04b939 commit 07982c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ C# has three floating-point types:
- `double`: 8 bytes (~15-17 digits precision). This is the most common type. Written as `2.45` or `2.45d`.
- `decimal`: 16 bytes (28-29 digits precision). Normally used when working with monetary data, as its precision reduces the chance of rounding errors. Written as `2.45m`.

As can be seen, each type can store a different number of digits. Trying to store PI in a `float` will only store the first 6 decimal places (with the last stored digit rounded).
As can be seen, each type can store a different number of digits. For example, trying to store PI in a `float` will only store the first 6 decimal places (with the last stored digit rounded).

## While Loops

Expand Down

0 comments on commit 07982c0

Please sign in to comment.