Calculations

Home  Back  Next

 

Calculations are handling two or more variables or constants.

 

The following calculations will exist:

 

Arithmetic as addition, subtraction, multiplication, division.

 

Logic as and, or, xor.

 

Comparisons as "equal" "not equal" "bigger" "less" and more.

 

Floating value test

 

Rounding as "to next" "against zero" or "away from zero". The number of decimal signs can be given.

 

Other as

Modulo        The rest of a division
Negation        The sign is changing
Absolute        The sign is removed

 

Calculations can have errors So a division with zero is impossible. An addition of two numbers can exceed the value limits. In all of these conditions the OK Bit is not set.

The result in calculation errors

Division by 0 -> the maximum possible value
Overflow -> The rest which does not fit the result

 

Elements which can have multiple inputs can be expanded with the "add" element. Connections can be dropped on the "add" element also creating more inputs.