Topic was automatically imported from the old Question2Answer platform.
Asked By
ondesic
I want to round 1.3453 to 1.35.
round() only rounds to the nearest decimal. Some languages have a second parameter in the round() function to designate what position to round to. Is there an equivalent in Godot?
where num is your number and places is the number of decimal places you want rounded
Hey! That’s the same as my answer. >:|
SIsilicon | 2018-06-02 04:45
Yeah when i posted this your answer wasnt shown yet. I dont think answers get posted right away as i was confused why yours has a date posted earlier than mine yet i couldnt see it at the time. Your post is much cleaner though