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
Omar De Yamlor
10,981 PointsIs 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 ?
2 Answers
Omar De Yamlor
10,981 PointsHi 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.
Christian Tisby
9,329 PointsI 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?
Seth Hamumu
iOS Development with Swift Techdegree Student 836 PointsSame 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?
Omar De Yamlor
10,981 PointsHi Seth, it would be best to write to treehouse support directly, as I haven't got any answer here since two years now
William Li
Courses Plus Student 26,868 PointsWilliam Li
Courses Plus Student 26,868 PointsCould you provide link to that quiz?