summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkuxcu <markuxcu@noreply.codeberg.org>2026-04-03 14:25:44 +0200
committermarkuxcu <markuxcu@noreply.codeberg.org>2026-04-03 14:25:44 +0200
commit9f314ce8e6f992ce43294f092149193655a7fe24 (patch)
tree07a300c479993ccb6e25347bc86cc04925721fa5
parent3056a2b5442f2f1ec58db3f3493109064ad2a2a5 (diff)
exercise 60: added hint on correct format
-rw-r--r--exercises/060_floats.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/exercises/060_floats.zig b/exercises/060_floats.zig
index 90da930..c9d9800 100644
--- a/exercises/060_floats.zig
+++ b/exercises/060_floats.zig
@@ -49,6 +49,8 @@ pub fn main() void {
// notation. Experiment with '{d}' and '{d:.3}' to see how
// decimal formatting works, or try '{e}' and '{e:.3}' for
// scientific notation.
+ // NOTE: The weight of the shuttle is a huge number, a scientific notation
+ // may be more appropriate.
print("Shuttle liftoff weight: {d:.0} metric tons\n", .{shuttle_weight / 1e3});
}