[format] problems
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 18184
interpreted = N
texte = I'm formatting some prices to be included in a [sendmail].When I use:$[format 10.2f][price][/format]I get a list such as:$ 1164.00$ 926.00$ 1246.00$ 19.00$ 1665.00$ 780.69$ 11933.37Which is ok (don't like the hanging $s, but if I use [format 10.2f]$[price][/format], all the prices come up 0.00)However, if I use what I prefer:$[format thousands 10.2f][price][/format]my list becomes:$1,164.00$926.00$1,246.00$19.00$1,665.00$780.69$11,933.37I want the comma separators, but what happened to the preceding spaces? According to the online docs, this should be working. I suppose I could use a combination of [format] and [countchars] to add the padding spaces manually, place the dollar sign immediately in front of the number, and still get the thousands separators.Rob MarquardtDesigner/Resident WireheadToast Design300 First Avenue North, Suite 150Minneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com
Associated Messages, from the most recent to the oldest:
I'm formatting some prices to be included in a
[sendmail].When I use:$[format 10.2f][price][/format]I get a list such as:$ 1164.00$ 926.00$ 1246.00$ 19.00$ 1665.00$ 780.69$ 11933.37Which is ok (don't like the hanging $s, but if I use [format 10.2f]$[price][/format], all the prices come up 0.00)However, if I use what I prefer:$[format thousands 10.2f][price][/format]my list becomes:$1,164.00$926.00$1,246.00$19.00$1,665.00$780.69$11,933.37I want the comma separators, but what happened to the preceding spaces? According to the online docs, this should be working. I suppose I could use a combination of
[format] and
[countchars] to add the padding spaces manually, place the dollar sign immediately in front of the number, and still get the thousands separators.Rob MarquardtDesigner/Resident WireheadToast Design300 First Avenue North, Suite 150Minneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com
Rob Marquardt
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:
showif and cart (1997)
reading a cookie problem (1998)
European dates (1998)
RE: Automatic Forwarding using WebCat (1997)
[url] link (1998)
logout after authenticated (2002)
[WebDNA] macOS 10.13.3 and WebDNA Mac Server 8.5.1 - hick-up (2019)
[Sum] function? (1997)
[WebDNA] [append] does not add the newline char at the end of the new record?! (which causes subsequent [search] to fail.) (2009)
Add - optional parameters textA=.... (1997)
Re2: frames & carts (1997)
Okay, I give up... (1999)
Is there an easier way? (1998)
Multiple Stores and WebCatalog Prefs (1997)
[WebDNA] Nested Searches (2013)
Hiding HTML and page breaks (1997)
WebStar SSL and WebCatalog conflict? (1999)
searchable list archive (1997)
Virtual hosting and webcatNT (1997)
Items XX to XX shown (1997)