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[/!] Thanks John p.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 Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 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:

    
  1. Re: Odd [math] behavior ( Brian Fries 2003)
  2. Re: Odd [math] behavior ( Glenn Busbin 2003)
  3. Re: Odd [math] behavior ( "Scott Anderson" 2003)
  4. Re: Odd [math] behavior ( John Peacock 2003)
  5. Re: Odd [math] behavior ( Brian Fries 2003)
  6. Re: Odd [math] behavior ( Chris List Recipient 2003)
  7. Re: Odd [math] behavior ( "Scott Anderson" 2003)
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[/!] Thanks John p.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 Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 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:

Country & Ship-to address & other fields ? (1997) Deleting Orders (1997) RE: [WebDNA] How to valuate a domain name? (2010) convertchars and e-mail (1998) WC on Mac OS X or Mac OS X Server 2.x (2001) OFF-TOPIC: Check www.godaddy.com for me ... (2003) Re:2nd WebCatalog2 Feature Request (1996) Off Topic: Help Wanted (1997) autosensing lanague selection (1997) Close-to Comparison Code (1998) form data submission gets truncated (1997) [WebDNA] Date error (2017) RE: Error reading data -1 (1997) Bug Report, maybe (1997) Deleting Orders (1997) Mac carriage returns (2004) Images do not upload completely ... (2003) RE: Re:Signal Raised (1997) logging in a user (1999) WebDNA dying or ... ? (2005)