Guest User

Untitled

a guest
Nov 23rd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. func showNumbers(){
  2. if let inputString = numberInput.text {
  3. let input = Int(inputString)
  4. let group = Int(round(groupslider.value))
  5. let priceEach = Int(round(Double((input)!/group*100))/100)
  6. perperson.text = String(priceEach)
Add Comment
Please, Sign In to add comment