aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/Utils.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/Utils.js b/js/Utils.js
index 1dc359d9..b709b2ce 100644
--- a/js/Utils.js
+++ b/js/Utils.js
@@ -108,6 +108,10 @@ function epoch(){
return Math.floor((new Date).getTime()/1000);
}
+function roundDownToNearestThousand(_num){
+ return Math.floor(_num/1000.0)*1000
+}
+
function isAlpha(letter){ return letter.match(/^[A-Za-z0-9]+$/) !== null; }
function isLowerCaseChar(letter){ return letter === letter.toLowerCase(); }