Rounding Problems Converting Hours Minutes Seconds (H.MS) to Hours (H.HH)

I would start by converting hh.mmss by adding 1/2 second (0.00005) and multiplying by 10000 before truncating to an integer. That should get you a fairly clean six digit unsigned long integer. Then you can split the number up into hh, mm, and ss. Convert to seconds and divide by seconds per hour to get hh.hhhh