Menu

#765 DBL_MAX evaluates to #INF

closed
nobody
None
headers
2015-01-17
2015-01-11
No

DBL_MAX evaluates to #INF

' in limits.bi #define DBL_MAX (1.797693134862316e+308)
' should be #define DBL_MAX (1.797693134862315e+308)
' in c it's 1.7976931348623157e+308

1 Attachments

Discussion

  • Matthew

    Matthew - 2015-01-12

    ...2316 is too high (I think 2^1024 is ...23159).
    ...2315 is too low (I think there is also ...23155, ...23153,...)
    We need the extra digit's precision, like in C.

     
  • Matthew

    Matthew - 2015-01-17
    • status: open --> closed
    • Component: compiler --> headers
     
  • Matthew

    Matthew - 2015-01-17

    Fixed in [737315]. Both FLT_MAX and DBL_MAX were one digit too short.

     

    Related

    Commit: [737315]


Log in to post a comment.