diff options
| author | gitlost <burmartke@gmail.com> | 2022-03-08 18:06:25 +0000 |
|---|---|---|
| committer | gitlost <burmartke@gmail.com> | 2022-03-08 18:06:25 +0000 |
| commit | b94a7a87fabba83ecb7774f6a2d8a23c0075955a (patch) | |
| tree | dca81f1ec14cc7da382419e11fa8982a1595a99e /examples | |
| parent | 2b43387a9d8a1c50c4b7c10a504877afff9b7ebd (diff) | |
Fix issue #1574 "fract in linalg/glm is broken" by fixing
trunc_f16/32/64 in "math.odin" (~ typos on expressions)
Fix classify_f16 Inf test (would fail for subnormal 0h0001)
by changing multiplier 0.5 -> 0.25
Add some useful consts to "math.odin" (INF_F16 etc)
Add comment to "demo.odin" mentioning that -0.0 must be used
to specify negative zero
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/demo/demo.odin | 1 |
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!!! |