Upload
rahul-r
View
214
Download
0
Embed Size (px)
Citation preview
8/6/2019 Intrinsic Functions
1/6
8/6/2019 Intrinsic Functions
2/6
INTRINSIC FUNCTIONS
Calendar Functions
(Note that all arguments in the date functions must be elementaryitems.)
CURRENT-DATE
Returns 21 characters of day and timeinformation
WHEN-COMPILED
Returns 21 characters of compile dateand time information
INTEGER-OF-DATE Converts a yyyymmdd calendar date toan integer
INTEGER-OF-DAY
Converts a Julian yyyyddd date to aninteger
DATE-OF-INTEGER
Converts an integer date to yyyymmddcalendar format
DAY-OF-INTEGER
Converts an integer date to Julianyyyyddd date format
8/6/2019 Intrinsic Functions
3/6
C. Statistical and Numerical Analysis Functions
INTEGER Returns the largest integer that does notexceed the argument value
INTEGER-PART
Returns the integer portion of theargument
MAX Returns the largest value in a list ofarguments
MIN Returns the smallest value in a list ofarguments
MEAN Returns the average of all values in a listof arguments
NUMVAL Returns the pure numeric value in asimple edited report item
NUMVAL-C Returns the pure numeric value in anedited report item that can be morecomplex
MIDRANGE Returns the average between the lowestand highest values in a list of arguments
MEDIAN Returns the middle value from a list ofarguments
FACTORIAL Returns the factorial of a number
REM Returns the remainder obtained when
argument-1 is divided by argument-2
8/6/2019 Intrinsic Functions
4/6
MOD Returns the greatest integer value of theremainder obtained when argument-1 isdivided by argument-2
ORD-MAX Returns the position of the maximumvalue in a list
ORD-MIN Returns the position of the minimumvalue in a list
RANGE Returns the difference between the
largest value and the smallest value in alist.
SUM Returns the sum of values in a list
SQRT Returns the square root of an argument
LOG Returns the natural logarithm of anumber
LOG10 Returns the logarithm to base 10 of anumber
STANDARD-
DEVIATION
Returns the standard deviation
VARIANCE Returns the variance
RANDOM Returns a random number
8/6/2019 Intrinsic Functions
5/6
D. Trigonometric Functions
SIN Returns the sine of an argument
COS Returns the cosine of an argument
TAN Returns the tangent of an argument
ASIN Returns the arc sine of an argument
ACOS Returns the arc cosine of an argument
ATAN Returns the arc tangent of an argument
8/6/2019 Intrinsic Functions
6/6
E. Financial Functions
ANNUITY Returns the value of an investment overtime
PRESENT-VALUE
Returns the amount to be invested todayto obtain some desired future value
F. Character and String Functions
LOWER-CASE
Returns in lowercase alphabetic modethe value of an argument
UPPER-CASE
Returns in uppercase alphabetic modethe value of an argument
LENGTH Returns the length or number ofpositions in an argument
ORD Returns the ASCII code for a character
CHAR Returns the character equivalent of anASCII code
REVERSE Returns the value of an argument inreverse order