Getting the number of decimal places: Difference between revisions

m
no edit summary
(A given number, not a given numeric string.)
mNo edit summary
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 showshown above are not enclosed in quotes).
 
 
9,655

edits