Jump to content

Getting the number of decimal places: Difference between revisions

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
2,468

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.