Even though this is baffling me, I'm thinking its a newb question so I posted it here. In the following example:
a as float
x as float
X = 1
Do
a = (x/30)*255
print a
Inc x
If x>30 then Exit
Loop
Wait Key
I understand why "a" should be a float. Its telling the compiler to prepare to do some floating point math. What makes no sence to me is why "x" needs to be float for this to run correctly. Its illogical since in this scenerio, x will only be an integer.
Why can't a componant of a floating point math problem be an integer? It happens in real life every day.
The answer to Life, the Universe, and Everything? "Tea for Two". Deep Thought was Dyslexic.