
55
CSNG Function
Purpose:
To convert a numeric value into a single-precision real number
Format:
CSNG(<x>)
Example:
B = CSNG(C#)
FIX Function
Purpose:
To return the integer part of the expression specified by the argu-
ment
Format:
FIX(<x>)
Example:
A = FIX(B/3)
Remarks:
If the value of the argument is negative, this function returns a
different value than the INF function returns.
INT Function
Purpose:
To return the truncated integer of a numeric value
Format:
INT(<x>)
Example:
A = INT(B)
Remarks:
Returns the largest integer value less than or equal to the value
specified by the argument.
If the value of the argument is negative, this function returns a
different value than the FIX function returns.
LOG Function
Purpose:
To return the natural logarithm of the argument
Format:
LOG(<x>)
<x> must be greater than 0.
Example:
A = LOG(5)
RND Function
Purpose:
To return a random number between 0 and 1.
Format:
RND [<x>]
Example:
A = RND(1)
Remarks:
If <x> is negative, a new random number is generated.
If <x> is omitted, or if it is positive, the next random number of the sequence is
generated.
If <x> is 0, the last generated random number is repeated.
The sequence can be changed by executing the RANDOM statement.
SGN Function
Purpose:
To return the sign of an argument
Format:
SIGN(<x>)
Example:
B = SGN(A)
Remarks:
If the value of <x> is positive, SGN returns 1.
If the value of <x> is negative, SGN returns -1.
If the the value of <x> is 0, SGN returns 0.
Commands, Statements, and Functions
Содержание C500-ASC04
Страница 1: ...C500 ASC04 ASCII Unit Operation Manual Revised February 2001 ...
Страница 5: ...iv ...
Страница 7: ...vi ...