Fixed conversion from kg to tons

This commit is contained in:
Chris Boesch
2025-10-03 13:30:14 +02:00
parent c9218fbb22
commit c7e59864ca
2 changed files with 4 additions and 4 deletions

View File

@@ -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: