Getting the number of decimal places: Difference between revisions
→{{header|Ring}}
Line 927:
'''Another version'''
<syntaxhighlight lang="ring">
decimals(4)
num = 5.1945
Line 934:
dec = len(strnum) - pos
see "Number of decimals: " + dec + nl
</syntaxhighlight>
<pre>
Number of decimals: 4
|