Number limit issue

version 5.6.250

Hello,
GDevelop is rounding numbers set in the editor up to 6 digits, then fill the following digits with 0s.

Steps to reproduce

  • create a local variable “bigNumber” as number, fill it with 123 456789 321654
  • display a console message with a "LargeNumberToString(bigNumber)
  • it will display 123 457000 000000 (notice the 57 instead of 56 and the 0s)

Workaround

  • create a local variable “bigText” as text, fill it with 123 456789 321654
  • create a local variable “bigNumber” as number
  • set bigNumber to ToNumber(bigText)
  • display a console message with a "LargeNumberToString(bigNumber)
  • it will display 123456789321654, the correct number

It means GDevelop round the numbers coming from the editor.

4 Likes

From some real quick testing, I can reproduce this. It only seems to affect local variables, too.




1 Like

Thanks for testing, so this look even more weird :open_mouth:

Thank you for reporting an issue and the investigations. It should be fixed in the next release.

2 Likes

Really fast correction, thanks davy !