Built-in arithmetic functions – MTS Series 793 User Manual
Page 375

Subtraction
–
Direction
Result type
Operand type
Function
Operator
Precedence
Left-to-right
Int
Int or real
Less than
<
6
Less than or equal
<=
Greater than
>
Greater than or
equal
>=
Is equal
==
Not equal
!=
Left-to-right
Int
Int
Logical OR
||
7
Left-to-right
Logical AND
&&
The compiler will automatically provide conversions to get to the proper types. For example, if you add a real
number and an integer number, the code will convert the integer number to a real number before doing the
addition.
Built-in Arithmetic Functions
The language understands the following built-in arithmetic functions:
•
int abs(int x)
•
real acos(real x)
•
real asin(real x)
•
real atan(real x)
•
real atan2(real x, real y)
•
real cos(real x)
•
real cosh(real x)
•
real exp(real x)
•
real fabs(real x)
•
real in(real x)
•
real log10(real x)
•
real pow(real x, real y)
•
real sin(real x)
•
real sinh(real x)
•
real sqrt(real x)
•
real tan(real x)
MTS Series 793 Control Software 375
Calculated Signals