/= Assignment

Purpose

Divides the value of a variable or property by the value of an expression and assigns the result to the variable or property.

Syntax

x /= y

x:variable
y:aexp

Description

x /= y divides the expression y into the value in variable x. The type of the operation is determined by the data type of the variable x. For integer variables GFA-BASIC 32 generates integer division code.

Example

Local x% = 126

x% /= 2 + 1

Print x%   // Prints 42

Remarks

Although /= can be used with any numeric variable, the usage of integer variables is recommended in order to achieve the maximum optimization for speed.

See Also

+, -, ^, *, /, \, %, Add, Sub, Mul, Div, ++, --, +=, -=, /= , *=, Operator Hierarchy

{Created by Sjouke Hamstra; Last updated: 24/06/2017 by James Gaite}