how to return the number of decimals after the comma in c or javascript? [closed]

1

How to return the number of decimal places after the comma in c or javascript;

Example:

For input

2.254

The output would be

3

    
asked by anonymous 26.09.2016 / 12:39

0 answers