countDecimals Demos

A super tiny JavaScript utility to count the number of digits after the decimal point in a number.

1 -->

Output:

1.25 -->

Output:

1.125 -->

Output:

3/7 -->

Output: