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

iOS Swift 2.0 Basics Swift Operators Quiz: Operator Precedence

Remainder

not really sure how to solve Remainder don't know if its a fancy word for something

1 Answer

Tobias Helmrich
Tobias Helmrich
31,603 Points

Hey Kevin,

the remainder is not really a fancy word for something. :) It's just how you call the value that remains when you can't divide something evenly.

So in this case we're dividing 15 by 7. You can't divide this evenly. However 7 fits into 15 two times evenly and then there will be a remainder of 1. The modulo operator (%) will give you the remainder of a division which means 15 % 7 = 1.

I hope I could make it a bit more clear. If you have any further questions feel free to ask! :)