Middle three digits: Difference between revisions
Content added Content deleted
m (→{{header|C}}: lang tag) |
m (→version 2: added a comment to the section header. -- ~~~~) |
||
Line 1,003: | Line 1,003: | ||
<br>So is the value of a '''googol''' and a '''googleplex'''. |
<br>So is the value of a '''googol''' and a '''googleplex'''. |
||
<br><br>This REXX version is limited to numbers whose absolute value ≤ 100,000 digits. |
<br><br>This REXX version is limited to numbers whose absolute value ≤ 100,000 digits. |
||
<br>(The limit is defined via the '''NUMERIC DIGITS''' statement.) |
|||
<lang rexx>/*REXX program returns the 3 middle digits of a number (or an error). */ |
<lang rexx>/*REXX program returns the 3 middle digits of a number (or an error). */ |
||
n ='123 12345 1234567 987654321 10001 -10001 -123 -100 100 -12345', |
n ='123 12345 1234567 987654321 10001 -10001 -123 -100 100 -12345', |