56
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.
SIN Function
Purpose:
To return the sine of the numeric value given by the argument
Format: SIN(<x>)
<x> is an expression in radian units.
Example:
A = SIN(pi)
TAN Function
Purpose:
To return the tangent of the numeric value given by the argument
Format:
TAN(<x>)
BASIC Language
Section 4-2
Summary of Contents for SYSMAC C200H-ASC02
Page 1: ...Cat No W165 E1 04 ASCII Unit SYSMAC C200H ASC02 ...
Page 2: ...C200H ASC02 ASCII Unit Operation Manual Revised September 2002 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 7: ...TABLE OF CONTENTS viii Glossary 159 Index 163 Revision History 165 ...
Page 122: ...Appendix B Specifications 115 130 35 100 5 ...
Page 168: ...Cat No W165 E1 04 C200H ASC02 ASCII Unit OPERATION MANUAL ...