From 5257941f40554da3f8df074443a4c087dcff7004 Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Sat, 10 Dec 2022 23:02:40 +0000 Subject: 25-60 complete --- exercises/060_floats.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises/060_floats.zig') diff --git a/exercises/060_floats.zig b/exercises/060_floats.zig index a223257..beac853 100644 --- a/exercises/060_floats.zig +++ b/exercises/060_floats.zig @@ -40,7 +40,7 @@ pub fn main() void { // // We'll convert this weight from tons to kilograms at a // conversion of 907.18kg to the ton. - var shuttle_weight: f16 = 907.18 * 2200; + var shuttle_weight: f32 = 907.18 * 2200.0; // By default, float values are formatted in scientific // notation. Try experimenting with '{d}' and '{d:.3}' to see -- cgit v1.2.3-ZIG