NumberFormatter precision changes based on the input

后端 未结 0 318
挽巷
挽巷 2021-01-20 20:29

Lets take a look at this simple example

let formatter = NumberFormatter()
formatter.number(from: "0.945") // result: 0.945
formatter.number(from: &q         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题