You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Improve interest-is-interesting concept introduction
Removes some unneeded words and clarifies a few points.
* Update exercises/concept/interest-is-interesting/.docs/introduction.md
Integrate review feedback.
Co-authored-by: Jeremy Walker <[email protected]>
---------
Co-authored-by: Jeremy Walker <[email protected]>
Copy file name to clipboardExpand all lines: exercises/concept/interest-is-interesting/.docs/introduction.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,13 @@ C# has three floating-point types:
10
10
11
11
-`float`: 4 bytes (~6-9 digits precision). Written as `2.45f`.
12
12
-`double`: 8 bytes (~15-17 digits precision). This is the most common type. Written as `2.45` or `2.45d`.
13
-
-`decimal`: 16 bytes (28-29 digits precision). Normally used when working with monetary data, as its precision leads to less rounding errors. Written as `2.45m`.
13
+
-`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`.
14
14
15
-
As can be seen, each type can store a different number of digits. This means that trying to store PI in a `float` will only store the first 6 to 9 digits (with the last digit being rounded).
15
+
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).
16
16
17
17
## While Loops
18
18
19
-
In this exercise you may also want to use a loop. There are several ways to write loops in C#, but the `while` loop is most appropriate here:
19
+
In this exercise you may want to use a loop. There are several ways to write loops in C#, but the `while` loop is most appropriate here:
0 commit comments