Notice on floats

just a little thing i’ve noticed…

{CODE(ln=>1)}var = 1 - 1/2^ does not output 0.5 as assumed.
a coder pointed me out, that {CODE(ln=>1)}1.0 - 1.0/2.0^ does the trick.

just in case someone stumbles over the same problem.
(maybe that’s known among “real” programmers,… me not :) )

its also possible to write 1.f for float with single precision (16bit) and 1.d for double precision (32bit).