MantisBT - WebSolarLog
View Issue Details
0000258WebSolarLogFrontendpublic2014-04-25 17:102014-09-08 09:55
Paolo 
mfrijmann 
normalminoralways
resolvedfixed 
RaspberryRasbian
 
Release 1.1.0 
0000258: "bad" formatting of compare values
When I open compare.php page, difference column values are not equally formatted and decimals are not always the same (that leads to strange formatting when we get precision error).

e.g.:

difference cum. difference
6.91 6.91
4.54 11.45
-7.6 3.85
-16.13 -12.28
-4.54 -16.82
5.8 -11.02
7.31 -3.71
2.67 -1.04
6.09 5.05
9.26 14.31
5.9 20.21
-0.080000000000002 20.13 <-----
0.91 21.04
No tags attached.
Issue History
2014-04-25 17:10PaoloNew Issue
2014-08-21 12:27mfrijmannChangeset attached => SourceForge trunk r1856
2014-08-21 13:10mfrijmannNote Added: 0000481
2014-08-21 13:10mfrijmannAssigned To => mfrijmann
2014-08-21 13:10mfrijmannStatusnew => feedback
2014-08-21 16:41PaoloNote Added: 0000485
2014-08-21 16:41PaoloStatusfeedback => assigned
2014-08-21 17:26mfrijmannNote Added: 0000488
2014-08-22 13:06PaoloNote Added: 0000491
2014-09-08 09:55mfrijmannStatusassigned => resolved
2014-09-08 09:55mfrijmannFixed in Version => Release 1.1.0
2014-09-08 09:55mfrijmannResolutionopen => fixed

Notes
(0000481)
mfrijmann   
2014-08-21 13:10   
Fixed in trunk.
(0000485)
Paolo   
2014-08-21 16:41   
With latest trunk (1856) I'm getting always 12(!) digit after floating point.

What about rounding numbers to 3 digits (zero padded) after floating point?
(0000488)
mfrijmann   
2014-08-21 17:26   
Please refresh/clear/trash your browsers cache!
Then again check the page.
(0000491)
Paolo   
2014-08-22 13:06   
Great! I confirm that it works (2 digits after floating point). Thanks.