Re: Math Enhancement Request

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 55901
interpreted = N
texte = The solution that I use is this: [text]something=[math]35.5-[format .2f][somevar][/format][/math][/text] This further covers if [somevar] is not numeric. On Feb 4, 2004, at 5:00 AM, (WebDNA Talk) wrote: >> on 2/3/04 10:40 AM, Donovan Brooke at dbrooke@euca.us so noted... >>> [text]something=[math]35.5-[/math][/text] >>> >>> [something] does not get parsed to "35.5". >>> >>> Wouldn't this be an improvement to have 35.5 minus >>> nothing equal 35.5? >> If it's a case where you might be operating on a variable with no >> value, you >> could prefix it with a zero. >> [text]something=[math]35.5-0[somePossiblyEmptyVariable][/math][/text] >> ... but that's just a guess as to where this situation may arise. > > > That is better than my solution! > > [if "[somevar]" = ""][then]0[/then][else][somevar][/else][/if] ---------------------------------------------- Phil Marshall Signal Advertising 535 Stone Cutters Way Montpelier, VT 05602 802-229-4149 ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Math Enhancement Request ( Phil Marshall 2004)
  2. Re: Math Enhancement Request ( Donovan Brooke 2004)
  3. Re: Math Enhancement Request ( Donovan Brooke 2004)
  4. Re: Math Enhancement Request ( Rob Marquardt 2004)
  5. Re: Math Enhancement Request ( John Peacock 2004)
  6. Math Enhancement Request ( Donovan Brooke 2004)
The solution that I use is this: [text]something=[math]35.5-[format .2f][somevar][/format][/math][/text] This further covers if [somevar] is not numeric. On Feb 4, 2004, at 5:00 AM, (WebDNA Talk) wrote: >> on 2/3/04 10:40 AM, Donovan Brooke at dbrooke@euca.us so noted... >>> [text]something=[math]35.5-[/math][/text] >>> >>> [something] does not get parsed to "35.5". >>> >>> Wouldn't this be an improvement to have 35.5 minus >>> nothing equal 35.5? >> If it's a case where you might be operating on a variable with no >> value, you >> could prefix it with a zero. >> [text]something=[math]35.5-0[somePossiblyEmptyVariable][/math][/text] >> ... but that's just a guess as to where this situation may arise. > > > That is better than my solution! > > [if "[somevar]" = ""][then]0[/then][else][somevar][/else][/if] ---------------------------------------------- Phil Marshall Signal Advertising 535 Stone Cutters Way Montpelier, VT 05602 802-229-4149 ------------------------------------------------------------- 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://webdna.smithmicro.com/ Phil Marshall

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:

What am I missing (1997) service stop and restart (1997) [WebDNA] Anyone using CODA ?? (2012) Shipping Calc - Help please (1998) WebCat2final1 crashes (1997) Auto entering Friday's date in a field (2002) Hard carriage convertion? (1998) problems with 2 tags (1997) Freeze (2003) WebCat2b13 Command Reference Doc error (1997) RE: WebCatalog NT beta 18 now available (1997) [WebDNA] SMTP sendmail error (2015) searching twice on same field (1998) credit card - Revised (1997) Stop the madness. (1997) [removehtml] (was: Undocumented tags and contexts) (2000) [Shell] help with Tarring files (2002) Upgrading old WebCat Database Files (1997) What file? (1997) WebDNA equivalent for $REQUEST_URI (2004)