Getting the number of decimal places: Difference between revisions
Getting the number of decimal places (view source)
Revision as of 09:11, 16 August 2020
, 3 years agoA given number, not a given numeric string.
m (→{{header|Python}}: The task refers to 'a given number' (and shows no quotes around the sample values)) |
(A given number, not a given numeric string.) |
||
Line 8:
and for num = 12.3450 decimals = 4
(Note that the reference implementation – in Ring – shows a function over a given '''number''' rather than a given numeric string, and that the sample values show above are not enclosed in quotes).
|