
7-6
Section
Details of BASIC Commands
140
abs
Syntax:
ABS
(<numerical expression>)
Description:
Function. Calculates the absolute value of a numerical expression.
Remarks:
<numerical expression> may be any short or long integer, single-precision floating point or double-
precision floating-point expression. The range of the input argument, and therefore the output is
equivalent to the allowable range of a double precision floating point.
The return type is the same as that of the argument.
Examples:
> 10 A = -4
> 20 PRINT ABS(A)
> RUN
4
See also:
acos
Syntax:
ACOS
(<numerical expression>)
Description:
Function. Calculates the arc cosine of a numerical expression.
Remarks:
<numerical expression> may be any integer, single-precision floating point or double-precision
floating-point expression. The valid range for the input is [-1, 1].
The return type is single-precision floating point if the argument is of type integer or single-
precision floating point. If the argument is of type double-precision floating point then the return
type is also double precision floating point. The return value is in radians and will be in the range
[0,
π
]
Examples:
> 10 A = 0.4
> 20 PRINT ACOS(A)
> RUN
1.15928
See also:
ASIN
,
ATN
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...