If they came from a GPS unit, they probably came as ASCII digits. Convert to unsigned long type a digit at a time.