X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fnumber-format.html;h=f722ff25e6d79717571eae4fe06112233898a24c;hb=00eebc92ec7d1846599bf233dbc63b9ea3ac3095;hp=f85cf02b66d4c39c8ab27644af084374b52f496b;hpb=fd6b8dadbaa0614671bef1508c23d6a932e25081;p=dygraphs.git diff --git a/tests/number-format.html b/tests/number-format.html index f85cf02..f722ff2 100644 --- a/tests/number-format.html +++ b/tests/number-format.html @@ -7,7 +7,7 @@ -

The default formatting mimicks printf with %.pg where p is +

The default formatting mimics printf with %.pg where p is the precision to use. It turns out that JavaScript's toPrecision() method is almost but not exactly equal to %g; they differ for values with small absolute values (10^-1 to 10^-5 or so), with toPrecision()