Re: Question re: Format command

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34779
interpreted = N
texte = >Hi all, just wondering if there is any way for WebCat to handle the following. > >I have a calculation which outputs a percentage, such as 0.57. Is there a >way to get rid of the 0. using the format command? so far I can only >truncate it down to round up the hundreths place, giving me 0.xx, xx being >the percentage, when really I just want to display xx%. Any ideas on how >to do this? [math]0.57 * 100[/math]% Will that work? -- Sam LewisSamLewis.com Tel: 626-852-0956 Fax: 916-404-5698------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Question re: Format command (Christopher Feyrer 2000)
  2. Re: Question re: Format command (Sam Lewis 2000)
  3. Re: Question re: Format command (John Winningham 2000)
  4. Question re: Format command (Christopher Feyrer 2000)
>Hi all, just wondering if there is any way for WebCat to handle the following. > >I have a calculation which outputs a percentage, such as 0.57. Is there a >way to get rid of the 0. using the format command? so far I can only >truncate it down to round up the hundreths place, giving me 0.xx, xx being >the percentage, when really I just want to display xx%. Any ideas on how >to do this? [math]0.57 * 100[/math]% Will that work? -- Sam LewisSamLewis.com Tel: 626-852-0956 Fax: 916-404-5698------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Sam Lewis

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:

[WebDNA] Stupid question: setheader (2017) A Global Variable (1997) [WebDNA] Informations (2012) webcat NT (1998) [WebDNA] ErrorLog.txt generated by WebDNA (2010) Make sure I understand this??? (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Need help... (1997) Emailer (1997) creator code (1997) [Sum] function? (1997) WebCommerce: Folder organization ? (1997) Calendar (1997) Preferences Don't Stick Though ReBoot?? (2000) Mac WebCat 4.0 Day Planner Hang (2000) problems with 2 tags (1997) won't serve .tpl -permissions (2000) OT Big Brother (please ignore this sociological trivia) (2000) WebSTAR and WebSTAR/SSL with WebCatalog plugins (1998) Re:no template caching (1997)