How to round 10.2354978 to 10.24 using float(round(afloat)?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By GodotUser

Example:
var afloat = 10.2354978
float(round(afloat)) # or is this float(round(afloat 2))

Expect: 10.24

:bust_in_silhouette: Reply From: volzhs
var afloat = 10.2354978 
print(stepify(afloat, 0.01))

Excellent, thank you much!

GodotUser | 2019-07-09 21:21