Re: Odd [math] behavior
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 52785
interpreted = N
texte = Scott Anderson wrote:> I got a kick out of the following quote (taken from one of the links John> provided - Thanks, John!).I missed that quote, but it does cover the topic very well. Be very glad I couldn't find a copy of IEEE 754/854 with it's discussion of guard digits, exceptions, and trap handlers. Saying it is magical is much more useful!> FEEDBACK REQUEST: Given that most WebDNA programmers would not expect to> have to deal with those 'fuzzy' low order bits, perhaps we should build in a> more user-friendly default precision for the MATH context. Maybe have it> controlled via a new WebDNA pref? Any thoughts?I would actually prefer that all cart fields which store monetary values be maintained internally as integers, with implied decimal places for output only. You already have the Precision field in the Header for this purpose. The only problem with this is that technically, EURO calculations are supposed to use 4 digits, but only display two.Then it should be trivial to extend [math] like this[math currency]6000.4-5300.3[/math] [!]displays 700.10[/!]ThanksJohnp.s anyone wanting more information should order a copy of ACM Computing Surveys, Vol 23, No. 1, March 1991, "What Every Computer Scientist Should Know About Floating-Point Arithmetic"-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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:
Scott Anderson wrote:> I got a kick out of the following quote (taken from one of the links John> provided - Thanks, John!).I missed that quote, but it does cover the topic very well. Be very glad I couldn't find a copy of IEEE 754/854 with it's discussion of guard digits, exceptions, and trap handlers. Saying it is magical is much more useful!> FEEDBACK REQUEST: Given that most WebDNA programmers would not expect to> have to deal with those 'fuzzy' low order bits, perhaps we should build in a> more user-friendly default precision for the MATH context. Maybe have it> controlled via a new WebDNA pref? Any thoughts?I would actually prefer that all cart fields which store monetary values be maintained internally as integers, with implied decimal places for output only. You already have the Precision field in the Header for this purpose. The only problem with this is that technically, EURO calculations are supposed to use 4 digits, but only display two.Then it should be trivial to extend [math] like this[math currency]6000.4-5300.3[/math] [!]displays 700.10[/!]ThanksJohnp.s anyone wanting more information should order a copy of ACM Computing Surveys, Vol 23, No. 1, March 1991, "What Every Computer Scientist Should Know About Floating-Point Arithmetic"-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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/
John Peacock
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:
Unix DB Permission Error (2002)
Word search (1997)
User Authentication (2003)
Trigger: Only on Saturday (2001)
WebDNAmonitor running but webcat won't start. (2002)
redirect within a showif (1998)
Great product and great job ! (1997)
webcat NT with [dos] command (1997)
Navigator 4.01 (1997)
webcat page crashes MSIE 5 on mac (2000)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
New Site Announcement (1998)
Searching multiple Databases (1997)
ERROR in docs (2003)
Searching for Nothing (1998)
Emailer [cart] file names (1997)
Sort Order on a page search (1997)
searchable list archive (1997)
Setting up shop (1997)
WebCat2b13MacPlugIn - [include] (1997)