Fix fmt integer width printing
This commit is contained in:
1 parent
c59f6b7d0b
commit
18b3c0b2fc
2 files changed
+24
-40
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user