Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func showNumbers(){
- if let inputString = numberInput.text {
- let input = Int(inputString)
- let group = Int(round(groupslider.value))
- let priceEach = Int(round(Double((input)!/group*100))/100)
- perperson.text = String(priceEach)
Add Comment
Please, Sign In to add comment