Formualizer Docs

QUOTIENT

Returns the integer portion of a division result, truncated toward zero.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=QUOTIENT(numerator, denominator)

Arguments

ArgumentTypeRequiredDefault
numeratornumberRequired—
denominatornumberRequired—

Remarks

  • Fractional remainder is discarded without rounding.
  • Input errors are propagated.

Error cases

  • Dividing by 0 returns #DIV/0!.

Examples

Divide two positive integers with a remainder.

Formula =QUOTIENT(17,5)

Expected result 3

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Compare the result when the first number is negative.

Formula =QUOTIENT(-17,5)

Expected result -3

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Divide integers with no remainder.

Formula =QUOTIENT(15,5)

Expected result 3

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

A zero denominator makes the operation undefined.

Formula =QUOTIENT(17,0)

Expected result #DIV/0!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Positive quotient

Formula =QUOTIENT(10,3)

Expected result 3

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Negative quotient truncates toward zero

Formula =QUOTIENT(-10,3)

Expected result -3

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

How is QUOTIENT different from regular division?

It truncates the fractional part toward zero instead of returning a decimal result.

Implementation

Engine source

On this page