Functions for manipulating floating-point numbers

  • Authors:
  • John Reid

  • Affiliations:
  • Computer Science and Systems Division, A.E.R.E. Harwell, Oxfordshire, England

  • Venue:
  • ACM SIGNUM Newsletter
  • Year:
  • 1979

Quantified Score

Hi-index 0.00

Visualization

Abstract

Floating-point arithmetic is used for most scientific and engineering calculations and needs frequently arise for determining the precision of a given floating-point number, for detailed access to its component parts and for reconstructing it from its parts, much as for complex numbers. We give detailed definitions of three suitable functions in the hope that their wide use will enhance portability. They are first given without reference to any particular language and then made specific to Fortran.This note has been discussed by IFIP WG 2.5 on Numerical Software and has been approved by the working group, but does not constitute an official IFIP document.