SUSv2: Can we have MAXFLOAT in <math.h> ?

H. Peter Anvin hpa@zytor.com
Sun Jul 7 19:15:00 GMT 2002


Shawn Behrens wrote:
> Hi,
> 
> SUSv2 specifies that MAXFLOAT be part of math.h. See here:
> http://www.opengroup.org/onlinepubs/007908799/xsh/math.h.html
> 
> Could that be added, please? Like this, for example:
> 
> #define MAXFLOAT ((float)3.40282346638528860e+38)
> 
> (Which should match Intel architecture if my sources are right)
> 

/* math.h */

#include <limits.h>
#define MAXFLOAT FLT_MAX

... presumably?



More information about the Newlib mailing list