Simple math question

BlitzMax Forums/BlitzMax Beginners Area/Simple math question

Sky009(Posted 2005) [#1]
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


klepto2(Posted 2005) [#2]
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.