diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-02-26 09:42:24 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-02-26 09:42:24 +0000 |
| commit | 18b3c0b2fc2142c1acf73d5f90ef08c6bc8e1e7e (patch) | |
| tree | 39a3ca996281494ccbc46f60fa864ba779f26c88 /code | |
| parent | c59f6b7d0b582131bed4450bbb9aa1a71d5a01af (diff) | |
Fix fmt integer width printing
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/code/demo.odin b/code/demo.odin index 345ac7922..a8511b29e 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -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); |