From c7e59864cad7f8bfa6ec484002bd78b4e463d1f8 Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Fri, 3 Oct 2025 13:30:14 +0200 Subject: Fixed conversion from kg to tons --- exercises/060_floats.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises') 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: -- cgit v1.2.3