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

Leading Zeros...Again

Status
Not open for further replies.

Snookless

Technical User
Mar 17, 2003
34
BR
Looking for a formula to show leading Zeros, (Adjustable leading Zeros..EI 1,2,3,4..etc...), Also to make the formulat NOT round up or down.....for example if my pay rate is 8.79 per hour I would like to see "0008.79"

Also I would need one formula to show the decimal and one not to show the Decimal.

PS....the answers I recieved on the other thread I put in were great and I thank all who replied.
Snookless
 
Totext(payratefield,"0000.00")

Enjoy.

Reebo
Scotland (Sunny with a Smile)
 
Oh, and without the decimal would be :

Totext(payratefield,"0000")



Reebo
Scotland (Sunny with a Smile)
 
And if you don't want rounding :

Totext(truncate(payratefield),"0000")



Reebo
Scotland (Sunny with a Smile)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top