hotNipi / node-red-contrib-ui-artless-gauge

Node-RED dashboard widget, gauge with minimal design
MIT License
15 stars 4 forks source link

Rounding bug when decimals <= 0 #32

Closed rhueppin closed 1 year ago

rhueppin commented 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.

hotNipi commented 1 year ago

fixed v0.3.12