User Tag List

Results 1 to 2 of 2
  1. #1
    Octorok Master_of_Power's Avatar

    Join Date
    May 2001
    Age
    24
    Posts
    494
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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
    30
    Posts
    2,785
    Mentioned
    12 Post(s)
    Tagged
    1 Thread(s)

    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.
    [téknolŕiz]

    Recent script updates:
    2013-05-11: ghost.zh updated to 2.6.2
    2013-05-01: ffcscript.zh updated to 1.1.0
    Spoiler: show
    ffcscript.zh 1.1.0 - Updated 2013-05-01
    ghost.zh 2.6.2 - Updated 2013-05-11

    Armos Knights - Updated 2013-02-18
    Armos (LttP) - Updated 2013-02-19
    Big Tektite - Updated 2013-03-01
    Buzz Blob - Updated 2012-12-11
    Chaser - Updated 2012-12-11
    Goriya (LttP) - Updated 2012-12-11
    Homing fireball shooter - Updated 2012-12-11
    Popo - Updated 2012-12-11
    Spume - Updated 2012-12-11
    Twin Amoeba - Updated 2012-12-11
    Wall bouncer - Updated 2012-12-11

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
  •