Floats require a 0.?
Posted: Mon Jul 26, 2004 4:06 pm
Hiya,
Noticed something odd, but maybe it's just not what I'm used to. If I try to add .5 to something I get an error. However, if I try to add 0.5 it works okay.
Example:
That will bomb in the compiler, but:
...seems to work just fine.
So the 0. has to be there, it seems...or am I doing something wrong?
Thanks!
-Krylar
Noticed something odd, but maybe it's just not what I'm used to. If I try to add .5 to something I get an error. However, if I try to add 0.5 it works okay.
Example:
Code: Select all
Value.f = Random(1) + .5
Code: Select all
Value.f = Random(1) + 0.5
So the 0. has to be there, it seems...or am I doing something wrong?
Thanks!
-Krylar