Please tell me how to reduce the number in godot 3.5.3, that is, "1000 000 <—> 1.00million" or "1000 <—> 1.00thousand"? I looked at what stepify() is, but I didn't figure out how to use it!
reduction of numbers
VladFD That function has nothing to do with what you want to achieve. But you could write a function that does what you want fairly easy.
If your value is equal or bigger than a million get the number of millions and append "million" or "millions".
Example: 3,435,565 --> create the string "3"
+ " millions"
If it's not equal or bigger than a million do the same check for thousands.
- Edited
VladFD I did the same thing on godot 4x but it doesn't work on 3.5.3
stepify() in Godot 3 is the same as, or similar to, snapped() in Godot 4.
https://docs.godotengine.org/en/3.5/classes/class_%40gdscript.html#class-gdscript-method-stepify
https://docs.godotengine.org/en/4.2/classes/class_@globalscope.html#class-globalscope-method-snapped