Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

gdscript fixed decimal

var my_number = 0.123456

print("%.3f" % my_number) # 0.123
 
PREVIOUS NEXT
Tagged: #gdscript #fixed #decimal
ADD COMMENT
Topic
Name
4+5 =