Figure not rounding down

skwilliams

Registered User.
Local time
Today, 19:04
Joined
Jan 18, 2002
Messages
516
Can someone tell me what's wrong with this code of code to figure an hour amount?

Hr1 = Int(TotalChat / 60) / 60

If TotalChat is 2756, it's generating the Hr1 as 1. But if it rounds down then it should be 0.

Both variables are Long Integers.

Any help is greatly appreciated.

Steve
 
Thanks for your help.
 
If you write it this way you can get rid of the Int's

Hr1 = (TotalChat / 60) \ 60
 

Users who are viewing this thread

Back
Top Bottom