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)\");
You don't. It's the way Double (and Float) does work.
Double
Float
As workaround you can round your values when you are going to print them
for num in c { print(String(format: "%.1f", num)) }
1.1 2.3 4.2 5.5 6.8
1.1
2.3
4.2
5.5
6.8