ID : 627
/ Operator
Function
To calculate the quotient of 2 numeric values and return the result by data including decimal values. Or, to return the result of vector scalar division.
Syntax
number1 / number2
Guaranteed entry
- number1
- Designate numeric data or vector type data.
- number2
- Designate numeric data. An error occurs when 0 is designated.
Return value
Return the quotient by numeric value data. Or, return vector type data.
Description
Either of the following types of operation is performed depending on argument combination.
Quotient of numeric values
The quotient obtained by divide number1 by number2 when both arguments are numeric values.
Vector scalar division
When the argument number1 is vector type data and the argument number2 is numeric value data, return the scalar division of vector number1. Return the vector type data obtained by dividing each vector type data element by the argument number2.
Dim aaa As Vector aaa = V(100, 200, 300) PrintDbg aaa / 5 'V(20, 40, 60) is output.
An error occurs if the left-hand data are numeric and the right-hand data are vector type.
Related Terms
Operators, & Operator, * Operator, + Operator, - Operator, ^ Operator, = (Assignment) Operator, And Operator, Comparative Operators, Mod Operator, Not Operator, Or Operator, Xor Operator, \ Operator, >> Operator, << Operator
Attention
-
Example
-
ID : 627