Getting the number of decimal places: Difference between revisions

→‎{{header|Python}}: Removed comment and will comment in the talk page.
m (→‎{{header|Julia}}: more test cases)
(→‎{{header|Python}}: Removed comment and will comment in the talk page.)
Line 195:
 
=={{header|Python}}==
( Though this fails with an error when the given number is 1/7, math.e, math.pi, or math.tau, for example, all presumably 'numbers', and certainly Python '''float''' values.
The task refers to 'a given number', but this appears to be a function over a string. )
<lang python>In [6]: def dec(n):
Anonymous user