Lee Mac :
You have not read the documentation for the angtof function that I linked above -
the function will always return a value in radians
and the units argument represents the format of the supplied string,
not the output.
(rtos (ANGTOF "123d45'67\"" 1) 2 15) = "2.160169774509326"
Ok.
But what have I to do to
FORMAT the
INPUT for
ANGTOF ? ANGTOS returns the following results,
(ANGTOS 123.4567 0) = "233.548"
(ANGTOS 123.4567 1) = "233d32'52\""
(ANGTOS 123.4567 2) = "259.498g"
(ANGTOS 123.4567 3) = "4.076r"
(ANGTOS 123.4567 4) = "S 36d27'8\" W"
and never returns what i need :
"123d45'67\"" . . .
If it required that I have to produce
"123d45'67\"" "manually"
it means that I have before to extract the degrees, the minutes and the seconds . . .
convert them into strings and at the end,
format it in this way : "123
d45
'67
\""
. . .
but at this point, in this situation,
(a number like this 123.4567, that means 123° 45' 67'')
(I acquire this data from a surveying instrument, in this format)
ANGTOS and ANGTOF are not useful . . .
and I prefer to use my well working :GGMMSS>RAD
GGMMSS>RAD doesn't use any conversion to string.
And this is RIGHT for a MATH issue.