Display large integer

jiffwjiffw Member Posts: 42
edited May 2012 in Working with GS (Mac)
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?

Best Answer

  • MotherHooseMotherHoose Posts: 2,456
    edited May 2012 Accepted Answer
    lua 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

  • quantumsheepquantumsheep Member Posts: 8,188
    That's really weird. I love big numbers (the higher the score the better!)

    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

Sign In or Register to comment.