Navigation:  ThinBASIC language > Operators > Arithmetic >

Operator (\)

Previous pageReturn to chapter overviewNext page

 

Description

 

Used to divide two numbers and return an integer result.

 

Syntax

 

result = expression1 \ expression2

 

The \ operator syntax has these parts:

 

PartDescription
resultAny variable.
expression1Any expression.
expression2Any expression.

 

Returns

 

N/A

 

Remarks

 

Restrictions

 

See also

 

Examples

 

DIM MyNumber AS NUMBER

 

'Result will be the number 2

MyNumber = 12 \ 5