Im trying to make a function that returns the amount of digits pass the decimal point I dont know what to do.
So for example
- 5.67 returns 2 digits
- 5.159 returns 3 digits
- 5.000 returns 0 digits
I have tried to use the round() function but that doesnt work
Any suggestions?
My code so far enter image description here