customd / jquery-number

Easily format numbers for display use. Replace numbers inline in a document, or return a formatted number for other uses.
https://www.customd.com/articles/14/jquery-number-format-redux
MIT License
442 stars 402 forks source link

Possibility to enter prefix/suffix #135

Closed eximius313 closed 7 years ago

eximius313 commented 7 years ago

It would be great if jquery-number could handle prefix/suffix values: number( 5020.2364, 1, ',', ' ', '%' ); could output: 5 020,2 % of course % is not editable/deletable just like floating point separator

samatcd commented 7 years ago

For this kind of display value, you can just use a :before or :after pseudo element with content: '%' etc. No need for extra code in the plugin to do this.