From ae4778d7a3f4dacde39232b503bd134ce71444ee Mon Sep 17 00:00:00 2001 From: Karen Sargsyan Date: Mon, 23 May 2016 17:40:19 +0800 Subject: abs and floor added --- lib/js/urweb.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/js/urweb.js') diff --git a/lib/js/urweb.js b/lib/js/urweb.js index 55925df5..96a12637 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -151,6 +151,14 @@ function atan2(n, m){ return Math.atan2(n, m); } +function floor(n){ + return Math.floor(n); +} + +function abs(n){ + return Math.abs(n); +} + // Time, represented as counts of microseconds since the epoch var time_format = "%c"; -- cgit v1.2.3