I am adding two array which contains double values
let arrayA = [1.1,2.3]
let arrayB = [4.2,5.5,6.8]
let c = arrayA + arrayB
print("\(c)");
The print function is printing following result :
[1.1000000000000001, 2.2999999999999998, 4.2000000000000002, 5.5, 6.7999999999999998]
How to get exact double values after adding arrays ?