mIRC Homepage
Posted By: GeeKman $calc() problem - 04/07/04 05:52 PM
wee my first post

any ways
i am working on a script and im trying to get this 1.3456 hours to be more like this

1hour 20min

this is what i have so far
;calc the hours and min of time remain
set %setitimemin $right(%setitimeremain,7)
set %setitimehour $calc(%setitimeremain-%setitimemin)
set %setitimemin1 $calc(%setitimemin*60)

if i comment out the last line it returns the decimel value just fine but it wont let me multiply it by 60

hope i made it clear
GeeKman
thanks
Posted By: GeeKman Re: $calc() problem - 04/07/04 06:20 PM
good news was chating with a friend and he came up with useing the

$duration() function and it works perfect smile

thanks any ways smile
© mIRC Discussion Forums