I have 2 columns with geo coordinates (latitude and longitude), expressed in decimal notation, and i need to convert them in sessagesimal notation (prime, minutes and seconds).
Firstly i have started to check whether the decimal number is positive or negative to get north or south (west/east) for each entry, creating the relative column.
Then i need to :
example : given the latitude 43,9608277 (in the column LAT) take 43 and store it in new column as degree; then take the decimal part of 0,9608277 multiply by 60 to get 57,6496669, storing 57 in the new column primes, and finally take the last decimal part of 0,6496669 multiply again by 60 to get 38,98 which is the seconds.
and repeat this for each entry (which are not distinct) in the two columns.