Elmo HARSFEN0602, HARmonica Addition, Subtraction, Multiplication, Division, Remainder, 4.6 XOR

Models: HARmonica HARSFEN0602

1 220
Download 220 pages 51.63 Kb
Page 23
Image 23

HARSFEN0602ElmoHARmonicaSoftwareManual

PRELIMINARYDRAFT

4.2.4.1Addition

Notation

+

Description

Arithmetic addition

Number of

2

arguments

 

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.2Subtraction

Notation

-

Description

Arithmetic subtraction

Number of

2

arguments

 

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.3Multiplication

Notation

*

Description

Arithmetic multiplication

Number of

2

arguments

 

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.4Division

Notation

/

Description

Arithmetic division

Number of

2

arguments

 

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.5Remainder

Notation

%

Description

Remainder after division two integers

Number of

2

arguments

 

Output type

According to the section Promotion to float and truncation to integer

Example

20%4=0

 

5%2=1

4.2.4.6XOR

Notation

^

Description

Exclusive or, bitwise.

Number of

2

arguments

 

21

Page 23
Image 23
Elmo HARSFEN0602, HARmonica software manual Addition, Subtraction, Multiplication, Division, Remainder, 4.6 XOR