Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | themuffinman |
This is Godot 3.
I’m doing some float work, and it kept coming back as an integer rounded down.
print(1/2)
Returns 0
print (float(4/3) == float(1.0))
Returns True
print(“%1.1f” % (18/10))
Returns 1.0
print(“%1.1f” % 1.8)
Returns 1.8
Curious as to what I’m doing wrong or how to work around this issue.
Thanks