Fix fmt integer width printing

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

No files matched your search

+1 -1
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);