Results 1 to 4 of 4

Thread: Format Numbers

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    12
    This could be a simple question, but anyway,...

    How could I format a number that has been returned using an ASP to two places of decimals by using VBScript?

    Cheers...

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379

    Code:
    FormatNumber(expression, 2)
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3
    New Member
    Join Date
    Sep 2000
    Location
    Jonesboro, Arkansas
    Posts
    5

    Talking

    I also use the following code:

    format(expression, "#.00")

    that works well


  4. #4
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Not in VBScript it doesn't....
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width