format numbers

Discussion in 'ASP General' started by eddie wang, Feb 10, 2004.

  1. eddie wang

    eddie wang Guest

    I have the following html with result set. I like to have gas_revenue
    display like $99,9999 and I like to have gas_price dsplay like 9.99.
    Can I use html to accomplish this? Thanks.

    <td align="right"><Font
    class=content4><%=ars.Fields("GAS_REVENUE")%></td>

    <td align="right"><Font class=content4><%=ars.Fields("GAS_PRICE")%></td>

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    eddie wang, Feb 10, 2004
    #1
    1. Advertising

  2. Yes, look at the formatcurrency and formatnumber functions.

    --
    Aaron Bertrand
    SQL Server MVP
    http://www.aspfaq.com/




    "eddie wang" <> wrote in message
    news:...
    > I have the following html with result set. I like to have gas_revenue
    > display like $99,9999 and I like to have gas_price dsplay like 9.99.
    > Can I use html to accomplish this? Thanks.
    >
    > <td align="right"><Font
    > class=content4><%=ars.Fields("GAS_REVENUE")%></td>
    >
    > <td align="right"><Font class=content4><%=ars.Fields("GAS_PRICE")%></td>
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!
     
    Aaron Bertrand - MVP, Feb 10, 2004
    #2
    1. Advertising

  3. eddie wang

    Bullschmidt Guest

    Bullschmidt, Feb 12, 2004
    #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. Subra
    Replies:
    25
    Views:
    1,226
    user923005
    Mar 8, 2007
  2. Andrew Tatum

    Fibonacci Numbers and Lucas Numbers

    Andrew Tatum, May 26, 2007, in forum: C++
    Replies:
    6
    Views:
    584
    Howard
    May 27, 2007
  3. Lance Hoffmeyer
    Replies:
    2
    Views:
    539
    Lance Hoffmeyer
    Jul 26, 2007
  4. jko170
    Replies:
    9
    Views:
    133
    jko170
    Jan 21, 2009
  5. GIMME
    Replies:
    5
    Views:
    193
    Thomas 'PointedEars' Lahn
    Jul 26, 2004
Loading...

Share This Page