extract digits from latitude and longitude

latitude = 3723.46587704
longitude = 12202.26957864
i want last 10 digits including decimal to be saved in a variable and remaining in other..

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

Consider the following procedues:

  • convert value to cstring.
  • split the cstring by using strncpy().
  • ...
  • profit.