Anonymous user
Decimal floating point number to binary: Difference between revisions
Decimal floating point number to binary (view source)
Revision as of 22:36, 4 February 2014
, 10 years ago→{{header|REXX}}: removed a duplicate comment. -- ~~~~
(→{{header|REXX}}: added more error checking, changed the manner in which errors are displayed, added comments to the REXX section header. -- ~~~~) |
m (→{{header|REXX}}: removed a duplicate comment. -- ~~~~) |
||
Line 12:
<br>Negative bases are also supported (which won't be explained here).
<lang rexx>/*REXX programs converts any number in a base to another base; bases≤242*/
parse arg number toBase inBase digits .
if toBase=='' | toBase==',' then toBase=10 /*Specified? No, use default*/
|