webdial

Incomplete JS port of moondial.
git clone https://code.literati.org/webdial.git
Log | Files | Refs

commit 26f2467d5e66afebeac46d367ac106d68b745544
parent c5a3eea3189c292dcb3ad37a4733cc01a563a9a3
Author: Sean Lynch <seanl@literati.org>
Date:   Wed,  7 Sep 2011 21:40:34 -0700

Add Math object to abs call

Diffstat:
Msun.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sun.js b/sun.js @@ -5,7 +5,8 @@ var Sun = function() { } function dms_to_d(deg, min, sec) { - var result = Math.abs(deg) + Math.abs(min) / 60.0 + abs(sec) / 3600.0; + var result = Math.abs(deg) + Math.abs(min) / 60.0 + Math.abs(sec) / + 3600.0; if (deg < 0 || min < 0 || sec < 0) { result = -result; }