0

When I put this in my code in swift 3 with xcode :

myarray.append(99.1) 

I have following result when I use print(myarray) command for my array:

99.099999999999994

I would like to have only 99.1 no more. How can I add a value like 99.1 without being transform to the longer value in an array?

soundslikeodd
  • 1,078
  • 3
  • 19
  • 32
Mick
  • 21
  • 3

0 Answers0