Middle three digits: Difference between revisions
Content deleted Content added
m →{{header|Python}}: Adjusted output string |
m →version 2: changed wording in the REXX section header. |
||
Line 4,023: | Line 4,023: | ||
<br>So is the value of a '''googol''' and a '''googolplex'''. |
<br>So is the value of a '''googol''' and a '''googolplex'''. |
||
<br><br>This REXX version is limited to numbers whose length is <big>≤</big> 100,000 decimal digits. |
<br><br>This REXX version is limited to numbers whose length is <big>≤</big> 100,000 decimal digits. |
||
<br>(The decimal digits limit is defined via the '''numeric digits''' statement |
<br>(The decimal digits limit is defined via the '''numeric digits''' statement in the first line of the subroutine/procedure.) |
||
<lang rexx>/*REXX program returns the three middle digits of a decimal number (or an error msg).*/ |
<lang rexx>/*REXX program returns the three middle digits of a decimal number (or an error msg).*/ |
||
n= '123 12345 1234567 987654321 10001 -10001 -123 -100 100 -12345', |
n= '123 12345 1234567 987654321 10001 -10001 -123 -100 100 -12345', |