Re: Force leading zeros

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17960
interpreted = N
texte = >[Format 10.2f]99.5[/Format] yields > >| 99.50| (10 wide, 2 after the decimal) > >Whats I would like the 99.50 to really look like is 000099.50, forcing the >leading zeros of the number value. Have I missed a tag somewhere that >would allow me to do this?You could use [convertchars db=spaceToZero.db] with a custom spaceToZero.db database that converts spaces to zeros, that ought to do it ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: Force leading zeros (Gary Richter 1998)
  2. Re: Force leading zeros (Kenneth Grome 1998)
  3. Force leading zeros (Gary Richter 1998)
>[Format 10.2f]99.5[/Format] yields > >| 99.50| (10 wide, 2 after the decimal) > >Whats I would like the 99.50 to really look like is 000099.50, forcing the >leading zeros of the number value. Have I missed a tag somewhere that >would allow me to do this?You could use [convertchars db=spaceToZero.db] with a custom spaceToZero.db database that converts spaces to zeros, that ought to do it ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Re:no [search] with NT (1997) World Address Info (2003) Counting LineItems (2000) Merging databases (1997) request for new command (1997) [protect admin] (1997) WebCat on Alpha? (1997) [Fwd: F3 database munching] (1997) [WebDNA] Clean URLS job - will pay (2010) form data submission gets truncated (1997) ShowNext for method=POST (1997) using french characters (2000) READFILE command? (1998) Anyone using Verisign's Payflow Link for payment processing? (2000) autocommit problem (1998) Public beta 5 of WebCatalog 4.0 is now available (2000) webcatalog approaching max (1998) [WebDNA] why is the webdna.us site slow? (sometimes?) (2011) Error.html (1997) Conversion Database (2001)