theiviaxx / MilkChart

Graphing library for MooTools
56 stars 6 forks source link

Y Axis Labels Limit Precision #9

Closed kevinkey closed 12 years ago

kevinkey commented 12 years ago

Sometimes there will be a Y Axis Label displaying the full double precision, ie. "3.9999999999996" instead of "4". I have an example image, but I don't see a way of posting it.

theiviaxx commented 12 years ago

what does the table/data look like?

kevinkey commented 12 years ago

It's kind of a big table.

BrightnessSlopeExp
4.25900989973600
4.257244829971-0.012766936838520
4.251312846726-0.029655089002580
4.232647979242-0.090890516780040
4.220357306407-0.063203659721290
4.111121255095-0.54646394389010
3.98854792743-0.61358783786720
3.856284217652-0.66094078203310
3.741963029273-0.56759622369010
3.600143808263-0.72134074483120
3.479172151715-0.59928448046910
3.362843364804-0.58134150174810
3.235261451962-0.63621175616820
3.119413818261-0.5783764221430
2.964791653423-0.75752391017320
2.876324054871-0.45289158103730
2.763467050554-0.5669509710710
2.631399176038-0.65569049532270
2.502947051811-0.64336354651670
2.353013148174-0.75135975852070
2.233339675697-0.59669079884980
2.096871428333-0.68368874953790
1.992188760355-0.5217093275380
1.850047905284-0.71389236745420
1.761943426465-0.43913317133420
1.619071124099-0.72037274801570
1.494171176442-0.60331469383460
1.390299061445-0.5200108683370
1.237458834004-0.7840334650110
1.133357186146-0.52181218339380
0.9998004642655-0.68020910277160
0.893606911669-0.52294063555710
0.7742278474511-0.59259817794180
0.6464448993953-0.64117750454950
0.5384460693048-0.54260429972390
0.398144214591-0.71144187356960
0.2736398226237-0.61407302057340
0.1569699524439-0.58213199891540
0.123925109324-0.16468210293460
0.1111403294322-0.064287949245960
0.11127520739750.00066893218059410
0.1028661513515-0.042229844380070
0.10533414196460.012346747423750
0.103737663355-0.007964103464630
0.11642128246820.063644100434910
0.1031047780233-0.06755552451160
0.11656653376840.066473385173820
0.1024731923302-0.068339474660360
0.11840423183260.082021951501830
0.12416503946370.027970658702730
0.0000.1390.3390.5440.7380.9381.1381.3381.5401.7361.9382.1382.3392.5392.7432.9383.1383.3393.5393.7383.9394.1384.3394.5384.7394.9375.1445.3445.5395.7385.9356.1386.3396.5386.7376.9357.1377.3387.5387.7377.9398.1388.3388.5388.7388.9359.1379.3449.5389.744
theiviaxx commented 12 years ago

Fixed in 1.5