Gps Coordinate conversion help

I guess you wanna know how to do that in C (although you actually didn't ask a question).

float long = 45.124783;
int deglong = long;
long -= deglong; // remove the degrees from the calculation
long *= 60; // convert to minutes
int minlong = long;
long -= minlong; // remove the minuts from the calculation
long *= 60; // convert to seconds

This is what you've written in your math section converted to C code.