CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2001
    Location
    Irvine CA USA
    Posts
    88

    Question Constant, Symbol, or equiv for the maximum DOUBLE value?

    Is there a constant, symbol, or equivalent defined in some standard include that represents the maximum possible double value?

    I also need one for the maximum possible int value.

    TIA,
    Jeff

  2. #2
    Join Date
    Sep 2001
    Location
    San Diego
    Posts
    2,147
    Max Double size:

    DBL_MAX

    Max Float Size:

    FLT_MAX

    Max Integer Size:

    INT_MAX

    Also FLT_MIN for minimum float value etc. etc.

    Hope this helps,

    - Nigel

  3. #3
    Join Date
    Nov 2001
    Location
    Irvine CA USA
    Posts
    88
    Thanks!!!

  4. #4
    Join Date
    Apr 2003
    Location
    Sydney, Australia
    Posts
    38
    For C++ you can also use
    Code:
       #include <limits>
       std::numeric_limits<double>::min()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured