Getting the number of decimal places: Difference between revisions

adding lambdatalk contribution
(Getting the number of decimals en FreeBASIC)
(adding lambdatalk contribution)
Line 419:
12.345556 has 15 decimals
1234500000000000000000000000000000000000000000000000000.000000 has 7 decimals</pre>
 
=={{header|Lambdatalk}}==
In lambdatalk numbers are words/strings, some operators, like "+,-,*,/,...", know what to do with words like "123".
<lang Scheme>
{W.length
{S.replace 0 by in
{S.rest
{S.replace \. by space in 12.3456000}}}}
-> 4
</lang>
 
=={{header|Perl}}==