Note: information on this page refers to Ceylon 1.1, not to the current release.

/ (quotient) operator

The left-associative, binary infix / operator is used to compute the quotient of two operands.

Usage

Integer three = 6 / 2;

Description

Definition

The / operator it defined as follows:

lhs.divided(rhs);

See the language specification for more details.

Polymorphism

The / operator is polymorphic. The meaning of / depends on the Numeric interface.

Type

The result type of the / operator is the same as the type of its right hand operand.

Meaning of quotient for built-in types

For the built-in numeric types Integer and Float, / performs normal mathematical division, subject to the limitations of the relevant type.

See also