home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
fish
/
languages
/
dice_466
/
dice206b.lzh
/
netdcc
/
include
/
float.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-08-02
|
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