I wrote this code to "Playground". The spinning wheel spinner forever and never showed me the total. I opened a new "Playground" file, and it worked perfect.
Does anyone know why?
Here is the code:
Math - Splitting in a restaurant
import UIKit var people:Double = 4 var subtotal:Double = 128 var tax = 0.13 var split:Double = 0 let total = (subtotal / people) - (tax) print(total)
// Total shows $31.87 for each person
Thanks