number formatting

Discussion in 'ASP General' started by james, Jul 6, 2005.

  1. james

    james Guest

    Hi

    Im having a problem getting a number to display correctly. The number is
    the result of a calculation and I am then using formatnumber to remove any
    decimals.

    The number displays as '1,345' is there any way to get rid of the comma

    Thanks

    J
    james, Jul 6, 2005
    #1
    1. Advertising

  2. Did you read the documentation on formatnumber? One of the arguments is
    "groupDigits" which means use comma separators between thousands...




    "james @usura.co.uk>" <james<no spam> wrote in message
    news:bpWye.93910$...
    > Hi
    >
    > Im having a problem getting a number to display correctly. The number is
    > the result of a calculation and I am then using formatnumber to remove any
    > decimals.
    >
    > The number displays as '1,345' is there any way to get rid of the comma
    >
    > Thanks
    >
    > J
    >
    Aaron Bertrand [SQL Server MVP], Jul 6, 2005
    #2
    1. Advertising

  3. james

    james Guest

    Thanks

    Should have checked thought you could only set the no of decimal plaves

    J

    "Aaron Bertrand [SQL Server MVP]" <> wrote in message
    news:...
    > Did you read the documentation on formatnumber? One of the arguments is
    > "groupDigits" which means use comma separators between thousands...
    >
    >
    >
    >
    > "james @usura.co.uk>" <james<no spam> wrote in message
    > news:bpWye.93910$...
    >> Hi
    >>
    >> Im having a problem getting a number to display correctly. The number is
    >> the result of a calculation and I am then using formatnumber to remove
    >> any decimals.
    >>
    >> The number displays as '1,345' is there any way to get rid of the comma
    >>
    >> Thanks
    >>
    >> J
    >>

    >
    >
    james, Jul 6, 2005
    #3
    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:
    392
    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:
    526
    Philip Q [MVP]
    Jan 12, 2005
  3. probashi

    Number Formatting Question C#

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

    Number Formatting

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

    Formatting a number without rounding

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

Share This Page