summaryrefslogtreecommitdiff
path: root/website/harness/math_precision.js
diff options
context:
space:
mode:
Diffstat (limited to 'website/harness/math_precision.js')
-rw-r--r--website/harness/math_precision.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/website/harness/math_precision.js b/website/harness/math_precision.js
deleted file mode 100644
index 805b344b7..000000000
--- a/website/harness/math_precision.js
+++ /dev/null
@@ -1,13 +0,0 @@
-// Copyright 2009 the Sputnik authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-function getPrecision(num)
-{
- //TODO: Create a table of prec's,
- // because using Math for testing Math isn't that correct.
-
- log2num = Math.log(Math.abs(num))/Math.LN2;
- pernum = Math.ceil(log2num);
- return(2 * Math.pow(2, -52 + pernum));
- //return(0);
-}