Algorithm 665: Machar: a subroutine to dynamically determined machine parameters
William J. Cody · ACM Transactions on Mathematical Software · 1988
Numerical software written in high-level languages often relies on machine-dependent parameters to improve portability. MACHAR is an evolving FORTRAN subroutine for dynamically determining thirteen fundamental parameters associated with a floating-point arithmetic system. The version presented here operates correctly on a large number of different floating-point systems, including those implementing the new IEEE Floating-Point Standard.