Tihauan / jsgauge

Automatically exported from code.google.com/p/jsgauge
0 stars 0 forks source link

Allow use of digits after decimal point in value reading #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Set a value with digit after decimal point.
It should display as is but is instead rounded.

Here is a fix (the commented out line is the original line)
// valueText = formatNum( value, decimals ) +t hat.settings.unitsLabel;
 valueText = that.settings.value + '' + that.settings.unitsLabel;

Original issue reported on code.google.com by matrix...@gmail.com on 20 Jun 2011 at 5:31

GoogleCodeExporter commented 9 years ago
Ok please forgive me , there are some consequences to my patch which turn out 
only if you use auto update.
Under some circumstances rounding errors start accumulating and some really 
funky things are happenning.
Sometimes pointer drops to 0 and sometimes it starts spinning out of control.
Therefore you need to round pointerValue to some integer before doing it

Original comment by matrix...@gmail.com on 20 Jun 2011 at 8:05

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r58.

Original comment by dragos.tihauan on 18 Sep 2011 at 11:54