I am going to take a wild hit and assume that you want to convert pure degrees to degrees: minutes: seconds as a whole.
Here is one way to convert this to an integer, but obviously you will need to confirm that this is the format they use.
double originalLat = 38.898748, TEMPdecimal; int degrees = (int)originalLat; TEMPdecimal = (originalLat - degrees) * 60; int minutes = (int)TEMPdecimal; TEMPdecimal = (TEMPdecimal - minutes) * 60; int seconds = (int)TEMPdecimal; int lat = (degrees * 10000) + (minutes * 100) + seconds;
In this case, 385355 or 38 degrees 53 minutes 55 seconds is returned. Sorry if this looks a little messy and type casting might not be the most efficient (you definitely need to make sure it is rounded correctly, I think the casting to int type is rounded all the time), but it will give you longitude / latitude.
source share