MACHAR is a routine to compute constants that characterize the floating point arithmetic system on a computer. This includes the value of the "machine epsilon", the smallest number that can be added to 1 and make a difference. However, it includes many other quantities of interest, including the arithmetic base, the largest and smallest magnitudes, and so on.
A C "translation" of these routines was supplied as part of ACM algorithm 722, and is given in the C MACHAR directory.
Files you may copy include:
The list of routines includes:
Return to the FORTRAN software page.