Floating-point arithmetic: Difference between revisions

Content deleted Content added
m removed parenthesis, fixed formatting
Miterdale (talk | contribs)
m Add link
Line 6:
 
A floating-point number ''a'' can be represented by two numbers ''m'' and ''e'', such that ''a = m &times; b<sup>e</sup>''.
In any such system we pick a base ''b'' (called the ''base'' of numeration, also the ''[[radix]]'') and a precision ''p'' (how many digits to store).
''m'' (which is called the ''[[significand]]'' or, informally, ''mantissa'') is a ''p'' digit number of the form &plusmn;d'''.'''ddd...ddd (each digit being an integer between 0 and ''b''&minus;1 inclusive). If the leading digit of ''m'' is non-zero then the number is said to be '''normalized'''. Some descriptions use a separate sign bit (''s'', which represents &minus;1 or +1) and require ''m'' to be positive.
''e'' is called the ''exponent''.