Floating point

From Rosetta Code
Revision as of 02:25, 24 March 2012 by rosettacode>Kernigh (This page might become longer, later.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Floating point is a numeric system for approximating real numbers. Each floating-point number stores some digits and an exponent, taking the form

value = digits × RADIXexponent

This design uses a constant RADIX and limits the maximum number of digits. Calculations are fast but inexact, because the limit on digits causes round-off errors.