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 Basics Swift Operators Arithmetic Operators

Getting an Error

http://prntscr.com/dtjjry Thats a screenshot off the problem, please help, I'm pretty sure its exactly the same as in the video, but still getting an error.

Solved it, the problem was that 'let' started with a capital L and not lowercase. :)

5 Answers

Good! Paying attention to details is very important in programming. Any typo can cause a bug.

Good job debugging your own code!

The l in let is capitalized. It should be lowercased ~Let~ let

hey guys, so I'm also getting an error.

//Binary Operators

let height: Double = 12 // in ft let width: Double = 10 // ft

let area = height * width // Area in sq ft // 1 sq meter = 1 sq foot / 10.764

let areaInMeters = area/10.764

this still gives me an issue with the " note: overloads for '/' exist with these partially matching parameter lists: (Double, Double), (Int, Int) let areaInMeters = area/10.764"

Any thoughts?

var height: Double = 12.0 var width: Double = 10.0 var sq: Double = 10.764

let area = height * width

let areaInMeters = area/sq