Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Dividing times...

From: carl:cybercraft at: 9-Jan-2003 23:30

On 09-Jan-03, Gregg Irwin wrote:
> Hi Carl, >>>> t1: 0:00:59 t2: 0:00:15 >> == 0:00:15 >>>> (t1/1 * 3600 + (t1/2 * 60) + t1/3) / (t2/1 * 3600 + (t2/2 * 60) + >> t2/3) >> == 3.9333333333333 >> but is there a better way? > I don't know about better but... >>> 0:00:59 / to integer! 0:0:15 > == 0:00:03.933333333
Ah - thanks Gregg. Put me on the right track, and the following /is/ a better way...
>> to decimal! 0:00:59 / to decimal! 0:0:15
== 3.933333333 -- Carl Read