Post Reply 
iPod Touch/Fin-12c
07-20-2015, 11:07 PM
Post: #6
RE: iPod Touch/Fin-12c
Code:
function to_hms(x) {
    var r = Math.floor(x);
    x -= r;
    x *= 60;
    r += Math.floor(x) / 100;
    x -= Math.floor(x);
    x *= 60;
    r += x / 10000;
    return r;
}

This doesn't appear to work with x = -0.7.

Cheers
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
iPod Touch/Fin-12c - HokieKev - 07-20-2015, 06:22 PM
RE: iPod Touch/Fin-12c - pascal_meheut - 07-20-2015, 06:45 PM
RE: iPod Touch/Fin-12c - Joe Horn - 07-20-2015, 07:06 PM
RE: iPod Touch/Fin-12c - Guenter Schink - 07-20-2015, 10:34 PM
RE: iPod Touch/Fin-12c - Thomas Klemm - 07-20-2015, 10:36 PM
RE: iPod Touch/Fin-12c - Thomas Klemm - 07-20-2015 11:07 PM
RE: iPod Touch/Fin-12c - Thomas Klemm - 07-20-2015, 11:39 PM
RE: iPod Touch/Fin-12c - striegel - 07-21-2015, 01:44 AM
RE: iPod Touch/Fin-12c - John Smitherman - 07-21-2015, 11:04 AM
RE: iPod Touch/Fin-12c - DGM - 07-21-2015, 01:20 PM
RE: iPod Touch/Fin-12c - bshoring - 07-26-2015, 10:42 PM



User(s) browsing this thread: 1 Guest(s)