currency - Swift NSNumberFormatter CurrencyStyle Without Symbol -
this question has been answered in objective-c here. how can in swift?
import uikit let nf = nsnumberformatter() nf.currencysymbol = "" nf.numberstyle = .currencystyle let stringfromnumber = nf.stringfromnumber(100) // "100.00"
Comments
Post a Comment