I am new to swift, it's actually my first attempt. I have the following program in playground:
//:===================
import UIKit
func tax(s:Double)->Double{
return s*0.05
}
var xx=66.0*2.0
tax(xx)
//============
The expected result is
6.6,
but swift evaluates the last line as
6.600000000000001
What am I missing.