1 /****************************************************************
2 Copyright 1990 - 1997 by AT&T, Lucent Technologies and Bellcore.
3 
4 Permission to use, copy, modify, and distribute this software
5 and its documentation for any purpose and without fee is hereby
6 granted, provided that the above copyright notice appear in all
7 copies and that both that the copyright notice and this
8 permission notice and warranty disclaimer appear in supporting
9 documentation, and that the names of AT&T, Bell Laboratories,
10 Lucent or Bellcore or any of their entities not be used in
11 advertising or publicity pertaining to distribution of the
12 software without specific, written prior permission.
13 
14 AT&T, Lucent and Bellcore disclaim all warranties with regard to
15 this software, including all implied warranties of
16 merchantability and fitness.  In no event shall AT&T, Lucent or
17 Bellcore be liable for any special, indirect or consequential
18 damages or any damages whatsoever resulting from loss of use,
19 data or profits, whether in an action of contract, negligence or
20 other tortious action, arising out of or in connection with the
21 use or performance of this software.
22 ****************************************************************/
23 
24 #define FMAX 40
25 #define EXPMAXDIGS 8
26 #define EXPMAX 99999999
27 /* FMAX = max number of nonzero digits passed to atof() */
28 /* EXPMAX = 10^EXPMAXDIGS - 1 = largest allowed exponent absolute value */
29 
30 #ifdef V10 /* Research Tenth-Edition Unix */
31 #include "local.h"
32 #endif
33 
34 /* MAXFRACDIGS and MAXINTDIGS are for wrt_F -- bounds (not necessarily
35    tight) on the maximum number of digits to the right and left of
36  * the decimal point.
37  */
38 
39 #ifdef VAX
40 #define MAXFRACDIGS 56
41 #define MAXINTDIGS 38
42 #else
43 #ifdef CRAY
44 #define MAXFRACDIGS 9880
45 #define MAXINTDIGS 9864
46 #else
47 /* values that suffice for IEEE double */
48 #define MAXFRACDIGS 344
49 #define MAXINTDIGS 308
50 #endif
51 #endif
52