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.



