projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add the magic <meta> tag for IE8+9
[dygraphs.git]
/
tests
/
number-format.html
diff --git
a/tests/number-format.html
b/tests/number-format.html
index
e17a15c
..
9b41407
100644
(file)
--- a/
tests/number-format.html
+++ b/
tests/number-format.html
@@
-1,5
+1,7
@@
+<!DOCTYPE html>
<html>
<head>
<html>
<head>
+ <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
<title>Test of number formatting</title>
<!--[if IE]>
<script type="text/javascript" src="../excanvas.js"></script>
<title>Test of number formatting</title>
<!--[if IE]>
<script type="text/javascript" src="../excanvas.js"></script>
@@
-58,21
+60,21
@@
};
updateTable = function() {
};
updateTable = function() {
- var headers = ['Dygraph.
defaul
tFormat()', 'toPrecision()',
- 'Dygraph.
defaul
tFormat()', 'toPrecision()'];
+ var headers = ['Dygraph.
floa
tFormat()', 'toPrecision()',
+ 'Dygraph.
floa
tFormat()', 'toPrecision()'];
var numbers = [];
var p = parseInt(document.getElementById('p_input').value);
for (var i = -10; i <= 10; i++) {
var n = Math.pow(10, i);
var numbers = [];
var p = parseInt(document.getElementById('p_input').value);
for (var i = -10; i <= 10; i++) {
var n = Math.pow(10, i);
- numbers.push([Dygraph.
defaul
tFormat(n, p),
+ numbers.push([Dygraph.
floa
tFormat(n, p),
n.toPrecision(p),
n.toPrecision(p),
- Dygraph.
defaul
tFormat(Math.PI * n, p),
+ Dygraph.
floa
tFormat(Math.PI * n, p),
(Math.PI * n).toPrecision(p)]);
}
// Check exact values of 0.
(Math.PI * n).toPrecision(p)]);
}
// Check exact values of 0.
- numbers.push([Dygraph.
defaul
tFormat(0.0, p),
+ numbers.push([Dygraph.
floa
tFormat(0.0, p),
0.0.toPrecision(p)]);
var elem = document.getElementById('content');
0.0.toPrecision(p)]);
var elem = document.getElementById('content');