You are viewing a single comment's thread. Return to all comments →
You need implement your "round function" like
func round2(value: Float) -> Int { if Int(value+0.5) > Int(value) { return Int(value+1) } return Int(value) }
This works fine!
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Operators
You are viewing a single comment's thread. Return to all comments →
You need implement your "round function" like
This works fine!