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

Leading Zero Issue 1

Status
Not open for further replies.

see123

Programmer
May 11, 2001
28
0
0
US
I have field in DB as number X = .6250. I need to display this filed as 0000000.6250

Used a formula to convert this filed to fixed length

ToText(X,"0000000.0000",2,"",".")

But this number is rounded to 000000.6300

any ideas please


 
The 2 is stating 2 decimal places, change it to 4, as in:

ToText(X,"0000000.0000",4,"",".")

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top