Simple math question

BlitzMax Forums/BlitzMax Beginners Area/Simple math question

Hi!

Please try this.

Global a,b: Float

a = 1.0/2.0
Print a


print 0

Global a: Float

a = 1.0/2.0
Print a


print 0.500

Do i miss something or is this an error?

Thanks

Ralf

As I know a is still an integer and only b is set to an Float.


Global a:Float,B:Float

a=1.0/2.0

Print a



This should work.