diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-01-15 12:00:13 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-01-15 12:00:13 +0000 |
| commit | 6fe25badf067d63c79999814f46be0ac79a39ef8 (patch) | |
| tree | f16c268add842c56c82a95f5be19e117ea27c088 /code | |
| parent | c29d433e381a4505045fccc02f2d00fafcc7f32f (diff) | |
Bug fix: comparisons with shifts
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/code/demo.odin b/code/demo.odin index a237d0545..b26adee95 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -1,10 +1,9 @@ #import "fmt.odin"; main :: proc() { - Fruit :: enum f32 { - Apple = 123, - Pear = 321, - Tomato, - } - fmt.printf("%s = %f\n", Fruit.Apple, Fruit.Apple); + fmt.printf("%f\n", 0.0); + fmt.printf("%f\n", 1.0); + fmt.printf("%f\n", -0.5); + fmt.printf("%+f\n", 1334.67); + fmt.printf("%f\n", 789.789); } |