6-6 Others
(Degree
[,Minute
[,
Second]
])
DEG
Numeric expression Numeric expression Numeric expression
Function:
Converts a sexagesimal expressed
by
given degrees, minutes and seconds
to
a
decimal.
Parameter:
Degree:
Minute:
Second:
Numeric expression.
Numeric expression.
Numeric expression.
l
'DEG
(degree, minute, second) I<
10
'
00
Explanation:
l)
Converts a sexagesimal expressed
by
given degrees, minutes and seconds
to
a
' decimal.
DEG
~
a,
b,
c)=
a+
6b0
+
36c00
2) The minutes and seconds can be
omitted
, and
they
will
be considered 0.
3)
The parenthesis
cannot
be
omitted.
Example:
DEG<
12,34,56)
§l
10
INPUT
A,B,C
20
PRINT
DEG(A,B,C)
30
END
1
.-,
..::
I
161