개발/swift

Swift divide result 0 issue

lemonade 2020. 10. 20. 22:33
반응형

Why divide result is 0 ?

1 / 5.0

1.0 / 5

1.0 / 5.0

 

It looks same. But different in swift.

 

 

 

 

Be careful!!

 

반응형
그리드형

'개발 > swift' 카테고리의 다른 글

Swift How to set build environment?  (0) 2020.10.25
Swift UILabel linke break mode  (0) 2020.10.22
Swift property observer  (0) 2020.10.20
Swift wkwebview message handler  (0) 2020.10.17
Swift codable protocol  (0) 2020.10.17