Rounding in Swift with round()

前端 未结 7 512
星月不相逢
星月不相逢 2020-12-08 01:52

While playing around, I found the round() function in swift. It can be used as below:

round(0.8)

Which will return 1, as expected. Here\'s

7条回答
提交回复
热议问题