Re: math problems
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 28088
interpreted = N
texte = Glenn,What she is doing is using the [lineitems] context (which is a loop) to sum all the values.ie:for each lineitem multiply quantity and crv together, then add it to the next iteration of the loop. pretty cool actually.Sorry Kim, I don't see any reason you should be getting weird data. The loop looks ok to me.You could try a few things though that might help.Break this up a bit. Try setting CRVFigure to 0 before you get here. Then do the [math] then format it.Maybe WebCat is getting confused with all this at once.>on 02/25/00 11:57 AM, Kimberly D Ingram at Kim@cnetech.com wrote:>> > $[format> > >..2f][math]CRVFigure=[lineitems][Quantity]*[CRV]+[/lineitems]0[/math][ >/format> > ] CRV>>I'm a long way from being a WebDNA wizard, but the + operator looks odd to>me. There's nothing following it that can be added to [Quantity]*[CRV].>>Is this some weird and esoteric WC thing that isn't documented in the user>manual? If it is, I sure can't find it in the Context: Math section.>>Glenn>>>------------------------------------------------------------->Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.>To end your Mail problems go to
.>>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 >-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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
Associated Messages, from the most recent to the oldest:
Glenn,What she is doing is using the [lineitems] context (which is a loop) to sum all the values.ie:for each lineitem multiply quantity and crv together, then add it to the next iteration of the loop. pretty cool actually.Sorry Kim, I don't see any reason you should be getting weird data. The loop looks ok to me.You could try a few things though that might help.Break this up a bit. Try setting CRVFigure to 0 before you get here. Then do the [math] then format it.Maybe WebCat is getting confused with all this at once.>on 02/25/00 11:57 AM, Kimberly D Ingram at Kim@cnetech.com wrote:>> > $[format> > >..2f][math]CRVFigure=[lineitems][Quantity]*[CRV]+[/lineitems]0[/math][ >/format> > ] CRV>>I'm a long way from being a WebDNA wizard, but the + operator looks odd to>me. There's nothing following it that can be added to [Quantity]*[CRV].>>Is this some weird and esoteric WC thing that isn't documented in the user>manual? If it is, I sure can't find it in the Context: Math section.>>Glenn>>>------------------------------------------------------------->Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.>To end your Mail problems go to .>>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 >-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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
Charles Kline
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 Module with Apache 2.2 (2006)
Cart doesn't interpret tag! (1997)
UPS (2003)
sorting on date in search (2000)
ThisURL and getting domain/server address (2005)
Text data with spaces in them... (1997)
New Guestbook Source (1997)
Dang... Sorry, WebDNA server not running (again)? (2003)
Nested [xxx] contexts & Bad Suffix (1998)
Snake Bites (1997)
Catalog page question (1999)
Search (1997)
shipCost (1998)
Emailer (1997)
Problems passing [SKU] with $Replace in 2.0 (1997)
notification solutions (1997)
[WebDNA] WSC Investors Repository (2008)
formatting a number (1999)
Listfiles not listing mounted volume (2002)
WebCat2 - [SendNews] (1997)