Has anyone know simple short code to convert this without use additional libraries ?
Like this:
double coord = 59.345235;
int sec = (int)Math.Round(coord * 3600);
int deg = sec / 3600;
sec = Math.Abs(sec % 3600);
int min = sec / 60;
sec %= 60;
Edit: Added an Abs call so that it works for negative angles also.