COBOL Manual for TNS and TNS/R Programs
Intrinsic Functions
HP COBOL Manual for TNS and TNS/R Programs—522555-006
14-4
Numeric Intrinsic Functions
Numeric Intrinsic Functions
A numeric intrinsic function returns a numeric value.
Table 14-2. Numeric Intrinsic Functions
Function Name Value Returned
ACOS Function
Arccosine of argument
ANNUITY Function
Ratio of annuity paid for a specified
number of periods at a specified
interest rate to initial investment of
one
ASIN Function
Arcsine of argument
ATAN Function
Arctangent of argument
COS Function
Cosine of argument
LOG Function
Natural logarithm of argument
LOG10 Function
Logarithm to base 10 of argument
MEAN Function
Arithmetic mean of arguments
MEDIAN Function
Median of arguments
MIDRANGE Function
Midrange of arguments
NUMVAL Function
Numeric value of simple numeric
string
NUMVAL-C Function
Numeric value of numeric string with
optional commas and currency sign
PRESENT-VALUE Function
Present value of a specified series of
future period-end amounts at a
specified discount rate
RANDOM Function
Pseudorandom number
REM Function
Remainder when one argument is
divided by the other
SIN Function
Sine of argument
SQRT Function
Square root of argument
STANDARD-DEVIATION Function
Standard deviation of arguments
TAN Function
Tangent of argument
VARIANCE Function
Variance of arguments