-5
rated 0 times
[
2]
[
7]
/ answers: 1 / hits: 23865
/ 10 Years ago, sat, november 22, 2014, 12:00:00
How would I calculate the number of decimal places (not digits) of a real number with Javascript?
function countDecimals(number) {
}
For example, given 245.395, it should return 3.
More From » javascript