Investment Studio > Expressions > Functions > Math & Trig > QUOTIENT

integer quotient(integer numerator, integer denominator)

Returns the value of numerator / denominator rounded in the direction of zero to the nearest integer. Equivalent to the div operator.

Examples

=quotient(14, 3)

equals 4

=quotient(-14, 3)

equals -4

=mod(14, -3)

equals -4

=mod(-14, -3)

equals 4.

See also int, mod, round, rounddown, roundup, trunc.