X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Fnumber-format.js;h=e7d0d403978ed14f52a991b552c22842e566a03a;hb=7e692257515a69ce328851c45fddfb21a1457402;hp=cc3d22fcbe9f20141fcb221ae69956b224c16425;hpb=192d58e7c9fab1ae32da4a2dac723955f1639a54;p=dygraphs.git diff --git a/gallery/number-format.js b/gallery/number-format.js index cc3d22f..e7d0d40 100644 --- a/gallery/number-format.js +++ b/gallery/number-format.js @@ -5,7 +5,7 @@ Gallery.register( name: 'Number formatting', setup: function(parent) { parent.innerHTML = - "

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