Fix fmt integer width printing

This commit is contained in:
Ginger Bill
2017-02-26 09:42:24 +00:00
parent c59f6b7d0b
commit 18b3c0b2fc
2 changed files with 24 additions and 40 deletions

View File

@@ -13,7 +13,7 @@ main :: proc() {
x := 624.123;
s := strconv.format_float(buf[:], x, 'f', 6, 64);
fmt.println(s);
fmt.printf("%.3f\n", x);
fmt.printf("%3d\n", 102);
i := 123;
fmt.println(123);