Re: Math Enhancement Request
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 55875
interpreted = N
texte = John Peacock wrote:> Donovan Brooke wrote:> >> [text]something=[math]35.5-[/math][/text]>>>> [something] does not get parsed to "35.5".>>> > What does it get interpreted as? That is really poor code, more than > anything else. NULL is not the same thing as 0, even in a [math] > context, so it is not surprising that it doesn't work that way.> > I'll bet your original code looked more like this:> > [text]something=[math]35.5-[somefield][/math][/text]> > and [somefield] wasn't initialized properly.You are right, but if you test my above code, this doesn'twork either.I realize the differences between null and zero (and have codeda workaround solution) but I thought I'd just post thisbecause we work in a variable based environment. Sometimes theremight be instances where variables passed might need to conainnothing. I just thought it might be beneficial to treat nothingas zero in a math context but I could be wrong (tis why I posted).Donovan> > John> -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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:
John Peacock wrote:> Donovan Brooke wrote:> >> [text]something=[math]35.5-[/math][/text]>>>> [something] does not get parsed to "35.5".>>> > What does it get interpreted as? That is really poor code, more than > anything else. NULL is not the same thing as 0, even in a [math] > context, so it is not surprising that it doesn't work that way.> > I'll bet your original code looked more like this:> > [text]something=[math]35.5-[somefield][/math][/text]> > and [somefield] wasn't initialized properly.You are right, but if you test my above code, this doesn'twork either.I realize the differences between null and zero (and have codeda workaround solution) but I thought I'd just post thisbecause we work in a variable based environment. Sometimes theremight be instances where variables passed might need to conainnothing. I just thought it might be beneficial to treat nothingas zero in a math context but I could be wrong (tis why I posted).Donovan> > John> -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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/
Donovan Brooke
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:
WebCatalog as another user on mac osx (2001)
authenticating a second user (1997)
[OT] friday pics :-) (2005)
WebCat2 - [format thousands] (1997)
problem with NT beta (1997)
possible, WebCat2.0 and checkboxes-restated (1997)
Allowed fields in formulas.db (1998)
Word Break (1999)
PCS Frames (1997)
E-mailer error codes (1997)
A multi-processor savvy WebCatalog? (1997)
NT Manual (1997)
WebDNA Speed Test (2008)
Multi vendor shop (2000)
WebCat2final1 crashes (1997)
Preventing Merchant Settling ? (1997)
WebCatalog f2 Installation (1997)
SKU lookup (1997)
[WebDNA] Still having problems (2008)
Netscape 3.01 can't see db in form (1997)