Syntax
VAR32 /= VAR16
|
divide VAR32 with VAR16
|
Operands | VAR16: the divisor, integer variable |
VAR32: the dividend, fixed variable
Binary code
Description | The left operand – the dividend is divided by the right operand – the divisor, and the result is saved in the left operand. The dividend / quotient is a 32-bit fixed variable and the divisor a 16-bit integer variable. |
Execution | Left operand = left operand / right operand |
Example
fixed var1; // Define fixed variable user_1
int var2; // Define integer variable user_2
var1 = 11.0;
var2 = 3;
var1 /= var2;
Before instruction
|
|
After instruction
|
Var1
|
11.0 (0xB0000)
|
|
Var1
|
3.6666 (0x3AAAA)
|
Var2
|
3
|
|
Var2
|
3
|
|