ID : 636
\ Operator
Function
To calculate the quotient of 2 numeric values and return the result by integer type data.
Syntax
number1 \ number2
Guaranteed Entry
- number1
- Designate integer type data.
- number2
- Designate integer type data. An error occurs when 0 is designated.
Return Value
Return the quotient by integer type data.
Description
-
Related Terms
Operators, & Operator, * Operator, + Operator, - Operator, / Operator, ^ Operator, = (Assignment) Operator, And Operator, Comparative Operators, Mod operator, Not Operator, Or Operator, Xor Operator, >> Operator, << Operator
Attention
In RC8 series robot controller Ver.1.3.3 below, the result of a \ b is the same which is a / b calculated and that is rounded off to the closest whole number (round to the nearest even; RN).
Example
'!TITLE "\Operator"
Sub Main
I1 = 16
I2 = 3
I3 = I1 \ I2 'I3, 5 added
PrintDbg I3 & "=" & I1 & "\" & I2
End Sub
ID : 636