![background image](http://html1.mh-extra.com/html/omron/trajexia-cj1w-mch72/trajexia-cj1w-mch72_operation-manual_742454096.webp)
All BASIC commands
Section 4-2
85
4-2-4
/ (Division)
/i
4-2-5
^ (Power)
/i
4-2-6
= (Is equal to)
/i
Type
Mathematical function
Syntax
expression1 / expression2
Description
The operator
/
divides
expression1
by
expression2
.
Arguments
•
expression1
Any valid BASIC expression.
•
expression2
Any valid BASIC expression.
Example
result = 11 / 4
Assigns the value 2.75 to the variable
result
.
See also
N/A
Type
Mathematical function
Syntax
expression1 ^ expression2
Description
The power operator
^
raises
expression1
to the power of
expression2
.
This operation uses floating point algorithms and may give small devia-
tions for integer calculations.
Arguments
•
expression1
Any valid BASIC expression.
•
expression2
Any valid BASIC expression.
Example
result = 2^5
Assigns the value 32 to the variable
result
.
See also
N/A
Type
Mathematical function
Syntax
expression1 = expression2
Description
The operator
=
returns
TRUE
if
expression1
is equal to
expression2
,
otherwise it returns
FALSE
.
Arguments
•
expression1
Any valid BASIC expression.
•
expression2
Any valid BASIC expression.
Example
IF a = 10 THEN GOTO label1
If variable
a
contains a value equal to 10, program execution continues
at label
label1
. Otherwise, program execution continues with the next
statement.
See also
N/A
Содержание trajexia CJ1W-MCH72
Страница 69: ...Specifications Section 2 4 58...
Страница 83: ...FINS commands Section 3 4 72...
Страница 147: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...All BASIC commands Section 4 2 266...
Страница 278: ...267 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 371: ...360 Index...
Страница 373: ...362...