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

Is Bool a Numerical Type ?

Reading the official documentation for Swift, I understood that Booleans are a standalone type. Why is it that the quizz (Recap: Swift Types) considers Bool as a numeric type ?

Link to the Quizz

Could you provide link to that quiz?

2 Answers

Hi William, just caught up your answer, of course, here is the link

Which of the following is not a numerical type? A Int B Float C Double D Bool E None of the above

Opting for (D - Bool) answer, I'm notified it's not the correct one, which I don't understand.

I chose Bool as well, and it was not correct either. I understood Bool to be either true or false? So why is this incorrect regarding Swift?

Same here. Isn't Bool suppose to be true or false. Are they talking about in the sense for what they stand for which is 1 and 0?

Hi Seth, it would be best to write to treehouse support directly, as I haven't got any answer here since two years now