Floating point: Difference between revisions

From Rosetta Code
Content added Content deleted
(This page might become longer, later.)
(No difference)

Revision as of 02:25, 24 March 2012

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.