User Tag List

Results 1 to 2 of 2

Thread: don't limit integers to 4 digits

  1. #1
    Octorok Master_of_Power's Avatar
    Join Date
    May 2001
    Age
    35
    Posts
    496
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,196
    Level
    15
    vBActivity - Bars
    Lv. Percent
    47.16%

    don't limit integers to 4 digits

    Quote Originally Posted by DarkDragon View Post
    T20: Truncation of constant x.

    Both floats and ints can only be specified to four places of decimal precision. Any extra digits are simply ignored by the compiler, which then issues this warning.
    When changing enemy tiles via the script editor, this becomes very limited to us because we can only choose from 0-9999 tiles. If possible can you add 2 more digits to floats and integers?
    Keeping something big a secret, in case it doesn't work out I can understand.
    But he deliberatly drops little hints just to drive us mad.

  2. #2
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,433
    Level
    24
    vBActivity - Bars
    Lv. Percent
    70.1%

    Re: don't limit integers to 4 digits

    There are 18 bits devoted to the integral part of each number, which allows a range of 0-262143. One more digit is possible, certainly, but six-digit numbers would be limited to that range.
    Still, I don't think there's any reason that couldn't be done.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social