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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting Output

Status
Not open for further replies.

mdr2271

Programmer
Sep 14, 2005
42
US
Is it possible to format output as X,XXX and also as a percentage?
 
Do you mean take a number of any length and put commas in the right place or just numbers that are 4 digits long.

Also what would it be a percentage of?

If you had a value a and you wanted to show it as a percentage of b you would do:

<%

Response.Write(FormatNumber((a/b*100),1))

%>

This would write it to one decimal place.
 
Bleh, ignore me, I thought I was in the forum for SQL Server Reporting Solutions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top