NumberFormatter Fraction Digits confusion (swift)

前端 未结 0 643
死守一世寂寞
死守一世寂寞 2020-12-13 04:23

I am trying to format numbers so that there are always 4 digits after the decimal place. For example:

1       // 1.0000
0       // 0.0000
1.23    // 1.230
1.         


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