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

Format a field

Status
Not open for further replies.

nsanto17

IS-IT--Management
Mar 14, 2005
616
US
I have a field that I am pulling from a data base that I need to always display the number as #.### with 3 Decimal Points.

Right now its being display as

1, 0, 2.5

I need it to display

1.000, 0.000, 2.500

Any idea on how i can make that work.

Thanks in advance.
 
I solved it.

I used FormatPercent(varPoints,3)

that worked...

Thanks
 
That will depend on what you are using to pull the data from the DB.

You could even format it directly in the query so it gets retrieved in the format you want, but since you haven't specified the language or DB you are using, I'm afraid we can't be more specific than that.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top