GithubHelp home page GithubHelp logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.