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!

  • Toxe replied to this.

    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.

      VladFD I did the same thing on godot 4x but it doesn't work on 3.5.3

      Because there is no snapped function in Godot 3.