Generalised floating point addition: Difference between revisions
Generalised floating point addition (view source)
Revision as of 00:13, 7 November 2013
, 10 years ago→{{header|REXX}}
m (→any base: corrected a misspelling. -- ~~~~) |
|||
Line 912:
'''output''' is identical to the previous version.
<br><br>
=={{header|Ruby}}==
Actually this is just Ruby - its to be built in:
<lang ruby>p 12345679e63 * 81 + 1e63
p 12345679012345679e54 * 81 + 1e54
p 12345679012345679012345679e45 * 81 + 1e45
p 12345679012345679012345679012345679e36 * 81 + 1e3</lang>
All result in 1.0e+72.
|