上海维宏电子科技股份有限公司
Weihong Electronic Technology Co., Ltd.
Specialized, Concentrated, Focused 55
4.5 Expressions Used in Program Instructions
Current Definition for Expression:
All positions behind the address characters that are taken up by numbers can be replaced by
assignment expressions.
No characters of space type are allowed to exist in the expression, including Space, Tab and
Enter, etc
. What’s more, an expression must be ended with a valid separator.
Definition for Assignment Expression:
An assignment expression begins with an equal mark, followed by an arithmetic expression
which is constituted by various operators, functions, variables, brackets, etc.
The operators available now are divided into the following seven classes in order of priority:
1. Bracket
2. Function
3. Plus sign +, Minus sign -, NOT !
4. Multiplication *, Division /
5. Ad, Subtraction
–
6. Equal
==, Not equal !=, G
reater than >, Less than <
7. OR ||, AND &&
Following are the mathematical functions available now:
Function
Meaning
Sin
sine
Cos
cosine
exp
exponent
sqrt
square root
log
natural logarithm
tg
tangent
ctg
cotangent
asin
arcsine
acos
arc cosine
atg
arc tangent
int
round-down
abs
absolute value
Summary of Contents for Ncstudio
Page 74: ...RMB 21 00 ...