User Tag List

Results 1 to 10 of 16

Thread: [2.50.2] Negative Max Float Error?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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,435
    Level
    24
    vBActivity - Bars
    Lv. Percent
    70.4%
    Do you mean -99998.9999? -999999.9999 is much too low. I don't see any errors on -99999.9999 or -99998.9999.
    I noticed this, however:
    const float ASDF=-100.9999;

    Trace(ASDF);
    Trace(-100.9999);

    That prints
    -99.0001
    -100.9999

    That seems to support the hypothesis that it's simply dropping a digit. It only checks six characters before the decimal point, then adds everything after that.
    In any case, I can probably figure out how to fix it.

    Edit: Yep. Fixed.
    Last edited by Saffith; 12-19-2015 at 10:50 PM.

  2. #2
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,765
    Level
    21
    vBActivity - Bars
    Lv. Percent
    69.7%
    Quote Originally Posted by Saffith View Post
    Do you mean -99998.9999? -999999.9999 is much too low. I don't see any errors on -99999.9999 or -99998.9999.
    I noticed this, however:
    const float ASDF=-100.9999;

    Trace(ASDF);
    Trace(-100.9999);

    That prints
    -99.0001
    -100.9999

    That seems to support the hypothesis that it's simply dropping a digit. It only checks six characters before the decimal point, then adds everything after that.
    In any case, I can probably figure out how to fix it.

    Edit: Yep. Fixed.

    Oh, yes, I did mean that. Typed an extra 9 there; didn't I?

    The sign as a string char...that figures. Good to know that it's fixed for the future.

    Does it now support MIN_FLOAT of -214747.9999 ? or some other value?

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