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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -