1*38611Sbostic /* 2*38611Sbostic * Copyright (c) 1989 Regents of the University of California. 3*38611Sbostic * All rights reserved. 4*38611Sbostic * 5*38611Sbostic * Redistribution and use in source and binary forms are permitted 6*38611Sbostic * provided that the above copyright notice and this paragraph are 7*38611Sbostic * duplicated in all such forms and that any documentation, 8*38611Sbostic * advertising materials, and other materials related to such 9*38611Sbostic * distribution and use acknowledge that the software was developed 10*38611Sbostic * by the University of California, Berkeley. The name of the 11*38611Sbostic * University may not be used to endorse or promote products derived 12*38611Sbostic * from this software without specific prior written permission. 13*38611Sbostic * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14*38611Sbostic * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15*38611Sbostic * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16*38611Sbostic * 17*38611Sbostic * @(#)float.h 7.1 (Berkeley) 08/15/89 18*38611Sbostic */ 19*38611Sbostic 20*38611Sbostic #define FLT_RADIX 2 /* b */ 21*38611Sbostic #define FLT_ROUNDS 1 /* FP addition rounds to nearest */ 22*38611Sbostic 23*38611Sbostic #define FLT_MANT_DIG 24 /* p */ 24*38611Sbostic #define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ 25*38611Sbostic #define FLT_DIG 6 /* floor((p-1)*log10(b))+(b == 10) */ 26*38611Sbostic #define FLT_MIN_EXP -127 /* emin */ 27*38611Sbostic #define FLT_MIN 2.93873588E-39F /* b**(emin-1) */ 28*38611Sbostic #define FLT_MIN_10_EXP -38 /* ceil(log10(b**(emin-1))) */ 29*38611Sbostic #define FLT_MAX_EXP 127 /* emax */ 30*38611Sbostic #define FLT_MAX 1.70141173E+38F /* (1-b**(-p))*b**emax */ 31*38611Sbostic #define FLT_MAX_10_EXP 38 /* floor(log10((1-b**(-p))*b**emax)) */ 32*38611Sbostic 33*38611Sbostic #define DBL_MANT_DIG 56 34*38611Sbostic #define DBL_EPSILON 2.775557561562891351E-17 35*38611Sbostic #define DBL_DIG 16 36*38611Sbostic #define DBL_MIN_EXP -127 37*38611Sbostic #define DBL_MIN 2.938735877055718770E-39 38*38611Sbostic #define DBL_MIN_10_EXP -38 39*38611Sbostic #define DBL_MAX_EXP 127 40*38611Sbostic #define DBL_MAX 1.701411834604692294E+38 41*38611Sbostic #define DBL_MAX_10_EXP 38 42*38611Sbostic 43*38611Sbostic #define LDBL_MANT_DIG DBL_MANT_DIG 44*38611Sbostic #define LDBL_EPSILON DBL_EPSILON 45*38611Sbostic #define LDBL_DIG DBL_DIG 46*38611Sbostic #define LDBL_MIN_EXP DBL_MIN_EXP 47*38611Sbostic #define LDBL_MIN DBL_MIN 48*38611Sbostic #define LDBL_MIN_10_EXP DBL_MIN_10_EXP 49*38611Sbostic #define LDBL_MAX_EXP DBL_MAX_EXP 50*38611Sbostic #define LDBL_MAX DBL_MAX 51*38611Sbostic #define LDBL_MAX_10_EXP DBL_MAX_10_EXP 52