summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2025-10-17 18:08:59 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2025-10-17 18:08:59 +0200
commitb72bcd7e476f88f8ade4cd46586bac17181f929b (patch)
treeab8b026d2428d65c59905f92b2f155ba4d304f79 /patches
parentb25f9bb66e274a7c77190d941bc41414fea09038 (diff)
parent837e6aba3bc22aaf0f56c642310366956e52dce4 (diff)
Merge pull request 'Fixed description to decimal and scientific notation' (#312) from i311 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/312
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/060_floats.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/patches/060_floats.patch b/patches/patches/060_floats.patch
index 327d814..3f2d533 100644
--- a/patches/patches/060_floats.patch
+++ b/patches/patches/060_floats.patch
@@ -1,5 +1,5 @@
---- exercises/060_floats.zig 2025-10-03 13:28:03.092371247 +0200
-+++ answers/060_floats.zig 2025-10-03 13:27:40.842926774 +0200
+--- exercises/060_floats.zig 2025-10-17 17:58:44.811502880 +0200
++++ answers/060_floats.zig 2025-10-17 17:57:39.227157388 +0200
@@ -43,7 +43,7 @@
//
// We'll convert this weight from pounds to metric units at a
@@ -7,5 +7,5 @@
- const shuttle_weight: f16 = 0.453592 * 4480e3;
+ const shuttle_weight: f32 = 0.453592 * 4.480e6;
- // By default, float values are formatted in scientific
- // notation. Try experimenting with '{d}' and '{d:.3}' to see
+ // By default, float values are formatted in standard decimal
+ // notation. Experiment with '{d}' and '{d:.3}' to see how