projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
push flashcanvas to web
[dygraphs.git]
/
tests
/
number-format.html
diff --git
a/tests/number-format.html
b/tests/number-format.html
index
e17a15c
..
cb94c5c
100644
(file)
--- a/
tests/number-format.html
+++ b/
tests/number-format.html
@@
-1,3
+1,4
@@
+<!DOCTYPE html>
<html>
<head>
<title>Test of number formatting</title>
<html>
<head>
<title>Test of number formatting</title>
@@
-58,21
+59,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');