Trying to convert string to decimal and shows unexpected values for some strings such as 8.80 and 9.80 , tried to run some code in playground and Xcode, please refer below screen shots. I suspect this as a apple bug, Any suggestions why does the Double append zeros to some values ?
Also i have noticed using print you get expected value, but the variable is actually holding the big value with appended zeros, please refer screen shot, I still consider this as a bug.
var totalStr = "8.80"
var total = Double(totalStr)