i have below code in playground
let a:Double = 5.2
let b:Double = 5.3
print(b-a)
if data type is double the result is 0.0999999999999996 but if data type is float then result is 0.1.please explain why ?
i have below code in playground
let a:Double = 5.2
let b:Double = 5.3
print(b-a)
if data type is double the result is 0.0999999999999996 but if data type is float then result is 0.1.please explain why ?
