getting decimal numbers
Posted: Tue Mar 22, 2011 7:45 pm
I have search and got plenty of info but no examples in how to go about showing a decimal. Ive tried the ${Float.Centi} line w/o any luck. Any hint/advice/link to what im doing wrong.
heres what i have so far.
if i take the ${Float.Centi} away i get a number w/o the .00 with the float.centi I just get a 0(zero) return. Im starting to believe its not possible to return a number in decimals or at least wont /echo it back. I dunno. im quite baffled atm.
(hell i will even read through a flame as long as it gives me an idea what im trying to accomplish)
heres what i have so far.
Code: Select all
#event tmr "#*#This zone has been running for #1#:#2#:#3#:#4#"
Sub Main
/uptime
/delay 2s
/doevents
/end
sub event_tmr(int,Dys,Hrs,Mns)
/declare tday int outer
/echo ${Dys} : ${Hrs} : ${Mns}
/varcalc tday ${Float[${Math.Calc[${Dys}/24]}+${Hrs}*.05].Centi}
/echo ${tday}
/end(hell i will even read through a flame as long as it gives me an idea what im trying to accomplish)