Descriptive Problem Summary:
I'm sure it's been brought up before, but in nearly every game i've played when a number variable gets above 1mil it can't seem to display it properly, coming out with numbers and letters, i'm sure you know what i'm talking about.
Numbered Steps to Reproduce Problem:
Code Snippet (if applicable) to Reproduce Problem:
Expected Results:
Actual Results:
Does the problem occur:
Every time? Or how often?
In other games?
In other user accounts?
On other computers?
When does the problem NOT occur?
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Workarounds:
![]() Jul 7 2012, 2:30 pm
|
|
This isn't a bug. It's how BYOND handles integers.
|
Ah well i wasn't sure and i don't know enough of programming yet, i just saw it in so many games that i figured it must have been a bug. Thanks and thanks to you Lige, i'll write down that command and be sure to use it in my games.
|
It's displaying in scientific notation.
Also, it's important to note that all numbers in DM are actually single-precision floats, not integers. This means that for whole-number values above 16,777,216 they are not necessarily completely accurate. If you need humongous whole numbers, you could try something like Hobnob's Bignum library. |