Display large integer
jiffw
Member Posts: 42
I want to display the following number which is stored as an integer
"12345678" however it displays as "1.234568e+07"
Any way round this?
"12345678" however it displays as "1.234568e+07"
Any way round this?
Best Answer
-
MotherHoose Posts: 2,456lua converts all numbers with > 6 digits to scientific notation
for display … every time the # ≥ 7 digits … you have to change it to a 6 digits #
to display a # value with more than 6 digits:
demo: http://www.mediafire.com/?16xavinbp40kzi3
@};- MH
Answers
So this was a worry with me, and I was trying to work out what to do about it as I'd noticed it before.
But, having put in very large numbers into my game score it seems to be displaying fine.
Has this been fixed recently?
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io