Anonymous user
Getting the number of decimal places: Difference between revisions
Getting the number of decimal places (view source)
Revision as of 00:03, 24 August 2020
, 3 years ago→{{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 <u>past the decimal point</u> are to be counted and
Any number specified in exponential notation is first converted to a whole or fractional integer, and▼
displayed.
▲Any number specified in exponential notation is first converted to a whole or fractional integer
<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*/
|