home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMIGA PD 1
/
AMIGA-PD-1.iso
/
Programme_zum_Heft
/
Programmieren
/
Kurztests
/
DiceC
/
include
/
float.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-02-01
|
1KB
|
60 lines
/*
* FLOAT.H
* XXX fixme IEEE-X. Other bounds
* are somewhat loose (fp,dp)
*
* (c)Copyright 1990, Matthew Dillon, All Rights Reserved
*/
#ifndef FLOAT_H
#define FLOAT_H
/*
* motorola ffp: M[24].S.E[7]
*/
#define FLT_DIG 6
#define FLT_EPSILON 1.0E-6
#define FLT_MANT_DIG 24
#define FLT_MAX 1E31
#define FLT_MAX_10_EXP 31
#define FLT_MAX_EXP 23
#define FLT_MIN -1E31
#define FLT_MIN_10_EXP -31
#define FLT_MIN_EXP -23
#define FLT_RADIX 2
#define FLT_ROUNDS -1
/*
* IEEE 64 bit format. S.E[11].M[52]
*/
#define DBL_DIG 15
#define DBL_EPSILON 1.0E-15
#define DBL_MANT_DIG 52
#define DBL_MAX 1E307
#define DBL_MAX_10_EXP 307
#define DBL_MAX_EXP 1022
#define DBL_MIN 1E-307
#define DBL_MIN_10_EXP -307
#define DBL_MIN_EXP -1022
/*
* ??? 128 bit format. S.E[15].M[112]
*/
#define LDBL_DIG 33
#define LDBL_EPSILON 1E-33
#define LDBL_MANT_DIG 112
#define LDBL_MAX 1E4932
#define LDBL_MAX_10_EXP 4932
#define LDBL_MAX_EXP 32767
#define LDBL_MIN 1E-4932
#define LDBL_MIN_10_EXP -4932
#define LDBL_MIN_EXP -32767
#endif