/ (Math)
Divides the first of the given values by the second.
Arguments
dividend
is a natural or integer or real number.divisor
must be of the same type as dividend
.
Return values
quotient
of division as a natural or integer or real number, according to argument types. Integer division by zero is an error, real division by zero returns inf
, real division of zero by zero returns nan
. Division of integers gives the result as an integer quotient, fractional part will be lost.
Example
Output:
0
0.666667
2
2.500000