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
| Argument | Type | Required | Default |
|---|---|---|---|
numerator | number | Required | — |
denominator | number | Required | — |
Remarks
- Fractional remainder is discarded without rounding.
- Input errors are propagated.
Error cases
- Dividing by
0returns#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?.
Related functions
FAQ
How is QUOTIENT different from regular division?
It truncates the fractional part toward zero instead of returning a decimal result.