Is there any way to defining floating point constants without resorting to Tables?
For example:
halfpi con 1.5707963267948966192313216916398
According to the Atom Pro manual, page 44:
“The numeric type is automatically set by the compiler based on the value you enter.”
The compiler is complaining when I multiply the constant halfpi by some floating point indicating a type mismatch, so it seems that the constant syntax (con) only like integers?
for instance:
halfpi con 1.5707963267948966192313216916398
PiTimesTwo var float
For floating point canstants use FCON instead of CON.
myfloat fcon 1.23456
I don’t remember why con doesn’t work with floating point values(there was a reason though, I think) but fcon will force the constant to be calculated as a floating point value even in a situation like: