home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CBM Funet Archive
/
cbm-funet-archive-2003.iso
/
cpm
/
programming
/
HiTech_C
/
z80v309.lzh
/
FLOAT.H
< prev
next >
Wrap
Text File
|
1993-10-26
|
2KB
|
68 lines
/*cHARACTERISTICS OF FLOATING TYPES */
#DEFINEdbl_radix2/* RADIX OF EXPONENT FOR A DOUBLE */
#DEFINEdbl_rounds1/* DOUBLES ROUND WHEN CONVERTED TO INT */
#DEFINEflt_radix2/* RADIX OF FLOAT EXPONENT */
#DEFINEflt_rounds1/* FLOAT ALSO ROUNDS TO INT */
#IFZ80
#DEFINEflt_mant_dig24/* 24 BITS IN MANTISSA */
#DEFINEdbl_mant_dig24/* DITTO FOR DOUBLE */
#DEFINEdbl_mant_dig24/* DITTO LONG DOUBLE */
#DEFINEflt_epsilon-1.192093/* SMALLEST X, X+1.0 != 1.0 */
#DEFINEdbl_epsilon-1.192093/* SMALLEST X, X+1.0 != 1.0 */
#DEFINEflt_dig6/* DECIMAL SIGNIFICANT DIGS */
#DEFINEdbl_dig6
#DEFINEflt_min_exp-62/* MIN BINARY EXPONENT */
#DEFINEdbl_min_exp-62
#DEFINEflt_min1.084202E-19/* SMALLEST FLOATING NUMBER */
#DEFINEdbl_min1.084202E-19
#DEFINEflt_min_10_exp-18
#DEFINEdbl_min_10_exp-18
#DEFINEflt_max_exp64/* MAX BINARY EXPONENT */
#DEFINEdbl_max_exp64
#DEFINEflt_max1.84467E19/* MAX FLOATING NUMBER */
#DEFINEdbl_max1.84467E19
#DEFINEflt_max_10_exp19/* MAX DECIMAL EXPONENT */
#DEFINEdbl_max_10_exp19
#ENDIFZ80
#IFI8086 {$7c}{$7c} M68K
/*tHE 8086 AND 68000 USE ieee 32 AND 64 BIT FLOATS */
#DEFINEflt_radix2
#DEFINEflt_mant_dig24
#DEFINEflt_epsilon1.19209290E-07
#DEFINEflt_dig6
#DEFINEflt_min_exp-125
#DEFINEflt_min1.17549435E-38
#DEFINEflt_min_10_exp-37
#DEFINEflt_max_exp128
#DEFINEflt_max3.40282347E+38
#DEFINEflt_max_10_exp38
#DEFINEdbl_mant_dig53
#DEFINEdbl_epsilon2.2204460492503131E-16
#DEFINEdbl_dig15
#DEFINEdbl_min_exp-1021
#DEFINEdbl_min2.225073858507201E-308
#DEFINEdbl_min_10_exp-307
#DEFINEdbl_max_exp1024
#DEFINEdbl_max1.797693134862316E+308
#DEFINEdbl_max_10_exp308
#ENDIFI8086 {$7c}{$7c} M68K
/*LONG DOUBLE EQUATES TO DOUBLE */
#DEFINEldbl_mant_digdbl_mant_dig
#DEFINEldbl_epsilondbl_epsilon
#DEFINEldbl_digdbl_dig
#DEFINEldbl_min_expdbl_min_exp
#DEFINEldbl_mindbl_min
#DEFINEldbl_min_10_expdbl_min_10_exp
#DEFINEldbl_max_expdbl_max_exp
#DEFINEldbl_maxdbl_max
#DEFINEldbl_max_10_expdbl_max_10_exp