Closed rhueppin closed 1 year ago
If decimals <=0 the function ensureNumber uses parseInt(input) which cuts away the decimal places instead of rounding. parseInt(input.toFixed(0)) would fix this.
ensureNumber
parseInt(input)
parseInt(input.toFixed(0))
fixed v0.3.12
If decimals <=0 the function
ensureNumber
usesparseInt(input)
which cuts away the decimal places instead of rounding.parseInt(input.toFixed(0))
would fix this.