I am designing a stockcar lap timer that stores lap info and dumps it to a computer. My problem is calculating the MPH.
Lap time is 15.195 seconds
Track length is .333 miles
MPH should be 78.90 mph
My formula is the standard speed formula 'time / 3600 to convert to hours then divide that into the length of the track. I have tried many multiplications and or divisions to get rid of the decimal and not exceed 65536 length of a word. the best I can get is a straight 78.00 mph. I have searched the forums and the manual with no luck. Any help would be greatly appreciated.
Lap time is 15.195 seconds
Track length is .333 miles
MPH should be 78.90 mph
My formula is the standard speed formula 'time / 3600 to convert to hours then divide that into the length of the track. I have tried many multiplications and or divisions to get rid of the decimal and not exceed 65536 length of a word. the best I can get is a straight 78.00 mph. I have searched the forums and the manual with no luck. Any help would be greatly appreciated.