Generalised floating point addition: Difference between revisions
m
→{{header|REXX}}: typos
m (→any base: added boxed comment about allowing the numbers to be in any base (radix). -- ~~~~) |
Walterpachl (talk | contribs) m (→{{header|REXX}}: typos) |
||
Line 589:
│ is optional. An exponent is also allowed which is preceded by a ^. │
│ The value of the exponent may have a leading sign (+ or -). │
│ Each numeral (digit) is stored as
│ as the signs and exponent indicator. There is essentially no limit on │
│ the number of digits in the mantissa or the exponent, but the value of │
Line 597:
│ Method: a table of twenty-eight BCD numbers is built, and a test case │
│ of adding that BCD number 81 tinmes (essentially multiplying by 81), │
│ and then a number is added to that sum, and the
│ result in the final sum of 1e72 (for all cases). │
│ │
Line 714:
│ is optional. An exponent is also allowed which is preceded by a ^. │
│ The value of the exponent may have a leading sign (+ or -). │
│ Each numeral (digit) is stored as
│ as the signs and exponent indicator. There is essentially no limit on │
│ the number of digits in the mantissa or the exponent, but the value of │
Line 722:
│ Method: a table of twenty-eight BCD numbers is built, and a test case │
│ of adding that BCD number 81 tinmes (essentially multiplying by 81), │
│ and then a number is added to that sum, and the
│ result in the final sum of 1e72 (for all cases). │
│ │
|