DMSString
DMSString[θ] converts an angle θ given in decimal degrees to a degrees-minutes-seconds string.
DMSString[{ϕ, λ}] converts latitude and longitude given in decimal degrees to a DMS latitude-longitude string.
DMSString[{d, m, s}] converts a DMS list to a DMS string.
Examples
Convert decimal degrees to DMS string:
DMSString[40.7128]Please visit the official Wolfram Language Reference for more details.