X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Fnumber-format.js;h=e7d0d403978ed14f52a991b552c22842e566a03a;hb=c0e7b6254d879d6ccbfdd97b88eb904cc09cc9c1;hp=cc3d22fcbe9f20141fcb221ae69956b224c16425;hpb=aa0b189f8cb22d64ce65cc9b205c90f6e4fd1257;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()" +