Comments (3)
Thanks, shall look into it.
Original comment by [email protected]
on 28 Apr 2010 at 6:07
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from jquery-numberformatter.
If I understand correctly you want to simply add some text onto the output
formatted
number?
E.g.
1.0 -> 1.0 EUR
or
3 -> 3rd
If so this can currently be done by specifying a custom format such as '0.00
EUR'
e.g.
$('span').formatNumber({format:'0.00rd'});
Original comment by [email protected]
on 29 Apr 2010 at 5:13
from jquery-numberformatter.
Hello:
I meant something more 'dynamic' or 'automatic', like this (snippet is in PHP):
http://pastium.org/view/6fc76783ae16afbe46f4bd3b5017d2ce
So, the Jquery-NumberFormatter would add the ordinal suffix according to the
number
to format. This is cool for cases when an app is fetching numbers via Ajax and
needs
to add an ordinal suffix to them (ideally, without calling a PHP function; all
contained within Javascript).
The solution you gave on previous post will function only is the number is
hard-coded, since the ordinal suffix is also hard-coded.
Original comment by [email protected]
on 19 May 2010 at 3:51
from jquery-numberformatter.
Related Issues (20)
- I've added "tr" Turkish locale support. HOT 1
- Convertion from Lire to Euro with custom format HOT 2
- Careful with NaN HOT 2
- add italian "it" support HOT 2
- Percent format failed after second blur HOT 1
- force value to zero when non numeric input HOT 1
- add carry is not working HOT 1
- 1,9999 formatted to 1,00 instead of 2,00 HOT 4
- Add Portuguese "pt" support HOT 1
- Formatting breaks after first iteration HOT 2
- Problem formatting a number with 5 digits after the floating point. HOT 1
- rounding issue HOT 1
- How to specify formtting with leading zero HOT 2
- Prefixes or suffixes break, when running format() on multiple items HOT 5
- Applying the format more than once results in NaN HOT 1
- 0.00 instead of NaN HOT 2
- Small Numbers get wrong Formating. HOT 2
- Number formatting generally does not work as expected HOT 3
- Lack of pl locale HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-numberformatter.