double fractionalDegrees = 49.234d; // compute mixed base integral degrees,minutes,seconds from positive fractionalDegrees // integer degrees double degrees = Math.floor( fractionalDegrees ); double tempMinutesLeft = ( fractionalDegrees - degrees ) * 60.0d; // integer minutes double minutes = Math.floor( tempMinutesLeft ); // seconds.frations of seconds double seconds = ( tempMinutesLeft - minutes ) * 60.0d; // compute fractionalDegrees from mixed base fractionalDegrees = degrees + minutes/60.0d + seconds/3600.0d;