n#=1280/800
print n#
this returns 1.0 and it should be 1.6
To make this work correctly you have to do this...
n#=1280./800
print n#
this returns 1.6
you could also do this...
n#=1280.0/800.0
print n#
this returns 1.6
Just seems odd.
print n#
this returns 1.0 and it should be 1.6
To make this work correctly you have to do this...
n#=1280./800
print n#
this returns 1.6
you could also do this...
n#=1280.0/800.0
print n#
this returns 1.6
Just seems odd.