summaryrefslogtreecommitdiff
path: root/website/harness/numeric_conversion.js
diff options
context:
space:
mode:
Diffstat (limited to 'website/harness/numeric_conversion.js')
-rw-r--r--website/harness/numeric_conversion.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/website/harness/numeric_conversion.js b/website/harness/numeric_conversion.js
deleted file mode 100644
index 427eeaa21..000000000
--- a/website/harness/numeric_conversion.js
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright 2009 the Sputnik authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-function ToInteger(p) {
- x = Number(p);
-
- if(isNaN(x)){
- return +0;
- }
-
- if((x === +0)
- || (x === -0)
- || (x === Number.POSITIVE_INFINITY)
- || (x === Number.NEGATIVE_INFINITY)){
- return x;
- }
-
- var sign = ( x < 0 ) ? -1 : 1;
-
- return (sign*Math.floor(Math.abs(x)));
-}