(CW R5 + 2 patches, Win95)

I have:

 ULong  T1,T2,NumOfDays;

Why does:

 NumOfDays=(T2-T1)/86400+1;

give correct result and

 NumOfDays=(T2-T1)/(24*3600)+1;

doesn't?
T1, T2 are times in seconds, and when they differ for 1.999 days, 1st
operation gives correct NumOfDays=2, but 2nd gives result NumOfDays=9.
If it is automatic casting problem, where can I find these rules?

Rgds,

-DR


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to