Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Quotient operator

If / is quotient operator, then var_dump( 5/10 ) should return 0. Why does it return float(0.5)? Is it right to call / quotient operator? I think the right word should be division operator.

1 Answer

Dean Kennedy
Dean Kennedy
4,491 Points

Hey Aamir. It's definitely used for Division and that is also what quotient means. In arithmetic, a quotient (from Latin: quotiens "how many times", pronounced ˈkwoʊʃənt) is the result of division. For example, when dividing twenty-one (the dividend) by three (the divisor), the quotient is seven. (https://en.wikipedia.org/wiki/Quotient)