diff options
Diffstat (limited to 'exercises/060_floats.zig')
| -rw-r--r-- | exercises/060_floats.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/060_floats.zig b/exercises/060_floats.zig index b570518..ed63bb1 100644 --- a/exercises/060_floats.zig +++ b/exercises/060_floats.zig @@ -48,7 +48,7 @@ pub fn main() void { // By default, float values are formatted in scientific // notation. Try experimenting with '{d}' and '{d:.3}' to see // how decimal formatting works. - print("Shuttle liftoff weight: {d:.0} metric tons\n", .{shuttle_weight}); + print("Shuttle liftoff weight: {d:.0} metric tons\n", .{shuttle_weight / 1e3}); } // Floating further: |
