Elmo HARSFEN0602 Network Hardware User Manual


 
HARSFEN0602
4.2.4.1 Addition
Notation +
Description Arithmetic addition
Number of
arguments
2
Output type According to the section Promotion to float and truncation to integer
Example 4+5=9
3.45+2.78=6.23
4.2.4.2 Subtraction
Notation -
Description Arithmetic subtraction
Number of
arguments
2
Output type According to the section Promotion to float and truncation to integer
Example 4-5=-1
3.45-2.78=0.67
4.2.4.3 Multiplication
Notation *
Description Arithmetic multiplication
Number of
arguments
2
Output type According to the section Promotion to float and truncation to integer
Example PA=PA*2 doubles PA
5*4=20
1.5*2=3.0
4.2.4.4 Division
Notation /
Description Arithmetic division
Number of
arguments
2
Output type According to the section Promotion to float and truncation to integer
Example 20/4=5
3/1.5=2.0
4.2.4.5 Remainder
Notation %
Description Remainder after division two integers
Number of
arguments
2
Output type According to the section Promotion to float and truncation to integer
Example 20%4=0
5%2=1
4.2.4.6 XOR
Notation ^
Description Exclusive or, bitwise.
Number of
arguments
2