Float

Revision as of 02:02, 9 December 2008 by James4l (talk | contribs) (New page: The '''Float''' datatype is a type of computing variable. It has three parts: the mantissa, the exponent, and the sign. The mantissa is the number itself. It is raised...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Float datatype is a type of computing variable. It has three parts: the mantissa, the exponent, and the sign.

The mantissa is the number itself. It is raised to the 10^(exponent) power. The sign determines whether the number is positive or negative.


Advantages and Disadvantages with Fixed Datatype

Advantages:

Float has a significantly larger range of numbers than fixed. (123450000000 and 0.00012345 take up the same space)

It is an important metric in measuring computational power (in FLOPS)

Disadvantages:

Float takes up slightly larger space than Fixed to excersise its full potential

Possibility of low-precision rounding

This article is a stub. Help us out by expanding it.