Getting the number of decimal places: Difference between revisions

m
→‎{{header|REXX}}: added wording to the REXX section header.
m (→‎{{header|REXX}}: added wording to the REXX section header.)
m (→‎{{header|REXX}}: added wording to the REXX section header.)
Line 373:
<br>If the number (as specified) has trailing zeros, there are left intact.
 
I took it to mean that the number of decimal digits &nbsp; <u>past the decimal point</u> &nbsp; are to be counted and
Any number specified in exponential notation is first converted to a whole or fractional integer, &nbsp; and
displayed.
<brr>that number is then examined.
 
Any number specified in exponential notation is first converted to a whole or fractional integer, &nbsp; (or an integer with scale), <br>and &nbsp;that&nbsp; number is then examined.
<lang rexx>/*REXX pgm counts number of decimal digits which are to the right of the decimal point. */
numeric digits 1000 /*ensure enuf dec digs for calculations*/