smallest positive double number

Discussion in 'C++' started by gouqizi.lvcha@gmail.com, Jun 22, 2005.

  1. Guest

    Hi, All:

    I wonder aht is the smallest positive double number in C++ under 32-bit
    CPU

    Rick
    , Jun 22, 2005
    #1
    1. Advertising

  2. wrote:
    > I wonder aht is the smallest positive double number in C++ under 32-bit
    > CPU


    #include <limits>
    double tiny = std::numeric_limits<double>::min();

    or

    #include <climits>
    double tiny = DBL_MIN;


    Ralph
    Ralph D. Ungermann, Jun 22, 2005
    #2
    1. Advertising

  3. P.J. Plauger Guest

    "Ralph D. Ungermann" <> wrote in message
    news:d9b5ad$1pjm$...
    > wrote:


    >> I wonder aht is the smallest positive double number in C++ under 32-bit
    >> CPU

    >
    > #include <limits>
    > double tiny = std::numeric_limits<double>::min();


    denorm_min() is smaller, at least with IEEE floating-point.

    P.J. Plauger
    Dinkumware, Ltd.
    http://www.dinkumware.com
    P.J. Plauger, Jun 22, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sydex
    Replies:
    12
    Views:
    6,429
    Victor Bazarov
    Feb 17, 2005
  2. smallest positive double number

    , Jun 22, 2005, in forum: C Programming
    Replies:
    11
    Views:
    730
    Jean-Claude Arbaut
    Jun 23, 2005
  3. EK
    Replies:
    0
    Views:
    303
  4. MRAB
    Replies:
    2
    Views:
    290
    John Machin
    Jan 31, 2009
  5. Hicham Mouline
    Replies:
    2
    Views:
    745
    Keith Thompson
    Apr 23, 2010
Loading...

Share This Page