I declare i as integer (forgive me, old Fortran habits die hard) and perform the following calculations:

i=(Last_Date - First_Date)/NumSets


where xxx_date is a date (validated) and NumSets is integer.

Apparently, i is being rounded to the nearest integer.


ie: i=47/26 => 2
i=33/26 => 1

What gives?

DerFarm