/ (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

2 3 / print LF print 2.0 3.0 / print LF print 10 4 / print LF print 10.0 4.0 / print
Output:
0 0.666667 2 2.500000