Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. if isCelsius {
  2. textTemp.text = "\(Int(temp))°C"
  3. }else{
  4. let tempF = (temp * 9.0) / (5.0 + 32.0)
  5. textTemp.text = "\(Int(tempF))°F"
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement