diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-04-07 09:25:59 +0200 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-04-07 09:25:59 +0200 |
| commit | b225538aed949c50559e37f137663008539fcdee (patch) | |
| tree | 1953e653faba351ab103ec030eacbfc79b7dae6c /exercises | |
| parent | 3574fd3ae037f34510c6bb6657332b57447ac5b1 (diff) | |
| parent | 7cb7a9948a9f5c9965fedd59f0cd816f28962fe4 (diff) | |
Merge pull request 'Changed exercise 60 to require change of format' (#384) from markuxcu/exercises:fix-060 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/384
Diffstat (limited to 'exercises')
| -rw-r--r-- | exercises/060_floats.zig | 2 |
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}); } |
