<!DOCTYPE html>
<html>
<head>
+ <link rel="stylesheet" href="../dist/dygraph.css">
<title>Test of number formatting</title>
- <!--
- For production (minified) code, use:
- <script type="text/javascript" src="dygraph-combined.js"></script>
- -->
- <script type="text/javascript" src="../dygraph-dev.js"></script>
+ <script type="text/javascript" src="../dist/dygraph.js"></script>
</head>
<body>
- <p>The default formatting mimicks printf with %.<i>p</i>g where <i>p</i> is
+ <p>The default formatting mimics printf with %.<i>p</i>g where <i>p</i> 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()