# range

Discussion in 'OT Technology' started by Sex Machine, Nov 3, 2003.

  1. Sex Machine

    Sex Machine New Member

    Joined:
    Jun 26, 2003
    Messages:
    17,759
    Likes Received:
    0
    Location:
    SoCal
    Does anyone know the range for a double

    int goes from 0 to 64,xxx
    float goes from -32,xxx to 32,xxx
    double goes from....?
     
  2. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    A float is really a single float, which it doesn't have to be an integer.

    Single
    (single-precision floating-point) 4 bytes -3.402823E38 to -1.401298E-45 for negative values; 1.401298E-45 to 3.402823E38 for positive values
    Double
    (double-precision floating-point) 8 bytes -1.79769313486232E308 to
    -4.94065645841247E-324 for negative values; 4.94065645841247E-324 to 1.79769313486232E308 for positive values
     
  3. panzerfaust

    panzerfaust New Member

    Joined:
    Oct 13, 2003
    Messages:
    1,604
    Likes Received:
    0
    Location:
    Far far away
    well, what 5Gen said except you should really look at your compiler's documentation to be sure.
     

Share This Page