Mail Archives: djgpp/2012/07/30/00:08:09
> From: "K.J.Williams" <lordwilliams1972 AT gmail DOT com>
> Date: Sun, 29 Jul 2012 19:51:27 -0700 (PDT)
> Cc: djgpp AT delorie DOT com
>
> if long double is legal in C.....(I don't recall this in the C99)
Of course, it is!
> That actually would have to be :
>
> int main(void)
> {
> long double foo;
> printf("size of long double = %d\r\n", sizeof(foo));
>
> return 0;
> }
And the difference between this and my program is...?
> long double would have to be defined in limits.h
??? Primitive data types are never declared in any header, let alone
limits.h.
If you mean the largest and the smallest value of long double, then
you have this in float.h:
#define LDBL_DIG 18
#define LDBL_EPSILON __dj_long_double_epsilon
#define LDBL_MANT_DIG 64
#define LDBL_MAX __dj_long_double_max
#define LDBL_MAX_10_EXP 4932
#define LDBL_MAX_EXP 16384
#define LDBL_MIN __dj_long_double_min
#define LDBL_MIN_10_EXP (-4931)
#define LDBL_MIN_EXP (-16381)
- Raw text -