Number formatting?

Discussion in 'Ruby' started by Robert Cowham, Oct 29, 2003.

  1. Any convenient ways (without rolling my own) of formatting numbers to
    include thousands separators, e.g.

    1199123 printed as "1,199,123"


    --
    Robert Cowham
    Robert Cowham, Oct 29, 2003
    #1
    1. Advertising

  2. On Wed, 29 Oct 2003 15:44:09 +0000, Mark J. Reed wrote:

    > On Wed, Oct 29, 2003 at 03:17:50PM +0000, Robert Cowham wrote:
    >> Any convenient ways (without rolling my own) of formatting numbers to
    >> include thousands separators, e.g.
    >>
    >> 1199123 printed as "1,199,123"

    >
    >





    There is many variants located here:
    http://www.rubygarden.org/ruby?FixNumFormat

    --
    Simon Strandgaard
    Simon Strandgaard, Oct 29, 2003
    #2
    1. Advertising

  3. Robert Cowham, Oct 29, 2003
    #3
  4. Robert Cowham

    Guest

    , Oct 30, 2003
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. rguti

    Number formatting

    rguti, Jun 10, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    401
    Craig Deelsnyder
    Jun 10, 2004
  2. Luis Esteban Valencia

    Formatting decimal number

    Luis Esteban Valencia, Jan 12, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    531
    Philip Q [MVP]
    Jan 12, 2005
  3. probashi

    Number Formatting Question C#

    probashi, Feb 23, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    15,979
    Karl Seguin
    Feb 23, 2005
  4. thomson

    Number Formatting

    thomson, Aug 3, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    360
  5. Thor W Hammer

    Formatting a number without rounding

    Thor W Hammer, Nov 22, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    503
    Karl Seguin
    Nov 22, 2005
Loading...

Share This Page