aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2022-03-14 11:37:11 +0000
committerGitHub <noreply@github.com>2022-03-14 11:37:11 +0000
commit9fa69c3d3bc38e2c9047ddec2ccc53bcead97d54 (patch)
tree884a54b256336e7d37e773e9e37d97d729e675fa /examples
parent743a461aa9ec46fd7f85cf8878522414241378c3 (diff)
parent7dbcaf792dec01e0c9f2725b58ac88bd0b3aeade (diff)
Merge pull request #1599 from gitlost/fract_trunc_classify_#1574
Fix for trunc_f16/32/64 (#1574)
Diffstat (limited to 'examples')
-rw-r--r--examples/demo/demo.odin1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin
index 044860ff7..4d4490446 100644
--- a/examples/demo/demo.odin
+++ b/examples/demo/demo.odin
@@ -94,6 +94,7 @@ the_basics :: proc() {
z: f64 // `z` is typed of type `f64` (64-bit floating point number)
z = 1 // `1` is an untyped integer literal which can be implicitly converted to `f64`
// No need for any suffixes or decimal places like in other languages
+ // (with the exception of negative zero, which must be given as `-0.0`)
// CONSTANTS JUST WORK!!!