X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fnumber-format.html;h=f722ff25e6d79717571eae4fe06112233898a24c;hb=6611837c5490f2f4b6d61967aa1ad658ed5f11d4;hp=3f604d23c53bfe1d70124fd9e6b404d9f51ac4a1;hpb=93a5bb4c827d6665f395c48b216438f95e94d76e;p=dygraphs.git diff --git a/tests/number-format.html b/tests/number-format.html index 3f604d2..f722ff2 100644 --- a/tests/number-format.html +++ b/tests/number-format.html @@ -1,17 +1,13 @@ - + Test of number formatting - -

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()