This commit is contained in:
Adam Millerchip 2022-01-01 01:11:18 +09:00
parent 695d624ff3
commit a5ccb8025c
1 changed files with 1 additions and 1 deletions

View File

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