|
From: <Rob...@ao...> - 2001-03-06 13:21:05
|
In a message dated 06/03/01 13:09:20 GMT Standard Time,=20 pet...@im... writes: << Any quick explanations on the difference between a float and a double whe= n used as variables? >> Take a look at float.h :-) Or look below ;o) <</* * The characteristics of float. */ /* The radix for floating point representation. */ #define FLT_RADIX 2 /* Decimal digits of precision. */ #define FLT_DIG 6 /* Smallest number such that 1+x !=3D 1 */ #define FLT_EPSILON 1.19209290e-07F /* The number of base FLT_RADIX digits in the mantissa. */ #define FLT_MANT_DIG 24 /* The maximum floating point number. */ #define FLT_MAX 3.40282347e+38F /* Maximum n such that FLT_RADIX^n - 1 is representable. */ #define FLT_MAX_EXP 128 /* Maximum n such that 10^n is representable. */ #define FLT_MAX_10_EXP 38 /* Minimum normalized floating-point number. */ #define FLT_MIN 1.17549435e-38F /* Minimum n such that FLT_RADIX^n is a normalized number. */ #define FLT_MIN_EXP (-125) /* Minimum n such that 10^n is a normalized number. */ #define FLT_MIN_10_EXP (-37) /* * The characteristics of double. */ #define DBL_DIG 15 #define DBL_EPSILON 1.1102230246251568e-16 #define DBL_MANT_DIG 53 #define DBL_MAX 1.7976931348623157e+308 #define DBL_MAX_EXP 1024 #define DBL_MAX_10_EXP 308 #define DBL_MIN 2.2250738585072014e-308 #define DBL_MIN_EXP (-1021) #define DBL_MIN_10_EXP (-307)>> XANDER: Who's a little fear demon? Come on, who's a little fear demon? GILES: Don't taunt the fear demon. XANDER: Why? Can he hurt me? GILES: No, it's just tacky. ... GACHNAR: I am the Dark Lord! Fear me! WILLOW: He=E2=80=99s so cute! BtVS Season 4 - "Fear, Itself" |