Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Display a Numeric Quantity (with commas ex: 99,999) 1

Status
Not open for further replies.

JohnBates

MIS
Feb 27, 2000
1,995
US
Hi ASP people,

Not sure if this should be posted in VBScript forum or ASP.

I am displaying very large quantities (millions) in an unformatted format...

I would like for the variable containing 19027842 to appear as 19,027,842

This s probably easy... most of my questions are :)

Using ASP, VBscript,HTML
Thanks, John
 
Thanks JuanitaC,

This is what I came up with:

yrunits = FormatNumber(yrunits,0,-1,-1)

Displays perfectly. John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top