Re: Odd [math] behaviour

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52761
interpreted = N
texte = But that's not the answer - the answer is 700.1.. Why doesn't WebDNA do straightforward calculations by default? Pat On Thursday, September 11, 2003, at 06:47 pm, WebDna @ wrote: > You need to use the [format] to tell it how many decimals to return. > > [format .2f]700.099999999999[/format] should offer 700.09 > > > > ----- Original Message ----- > From: "Pat Holliday" > To: "WebDNA Talk" > Sent: Thursday, September 11, 2003 10:32 AM > Subject: Odd [math] behaviour > > >> Hi, >> >> When I place a simple calculation on a page WebDNA is (intermittently) >> returning results to several decimal places: >> >> E.G. >> >> [math]6000.4-5300.3[/math] >> >> returns >> >> 700.099999999999 >> >> Does anyone else find this behaviour? We're running WebDNA 5.1/MacOSX. >> >> Thanks >> >> Pat >> >> --------------------------------------------------------- >> Netro42 - http://www.netro42.com >> Web design and development >> --------------------------------------------------------- >> Netro42 Limited >> 39 - 51 Highgate Road London NW5 1RT >> T: 020 7267 7002 >> F: 020 7267 7544 >> E: mailto:patrick.holliday@netro42.com >> --------------------------------------------------------- >> >> >> ------------------------------------------------------------- >> 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/ > > > ------------------------------------------------------------- > 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/ > > --------------------------------------------------------- Netro42 - http://www.netro42.com Web design and development --------------------------------------------------------- Netro42 Limited 39 - 51 Highgate Road London NW5 1RT T: 020 7267 7002 F: 020 7267 7544 E: mailto:patrick.holliday@netro42.com --------------------------------------------------------- ------------------------------------------------------------- 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] behaviour ( Tim Robinson 2003)
  2. Re: Odd [math] behaviour ( John Peacock 2003)
  3. Re: Odd [math] behaviour ( Paul Willis 2003)
  4. Re: Odd [math] behaviour ( Donovan 2003)
  5. Re: Odd [math] behaviour ( John Peacock 2003)
  6. Re: Odd [math] behaviour ( "WebDna @" 2003)
  7. Re: Odd [math] behaviour ( John Peacock 2003)
  8. Re: Odd [math] behaviour ( Donovan 2003)
  9. Re: Odd [math] behaviour ( "WebDna @" 2003)
  10. Re: Odd [math] behaviour ( Pat Holliday 2003)
  11. Re: Odd [math] behaviour ( "WebDna @" 2003)
  12. Re: Odd [math] behaviour ( John Peacock 2003)
  13. Odd [math] behaviour ( Pat Holliday 2003)
But that's not the answer - the answer is 700.1.. Why doesn't WebDNA do straightforward calculations by default? Pat On Thursday, September 11, 2003, at 06:47 pm, WebDna @ wrote: > You need to use the [format] to tell it how many decimals to return. > > [format .2f]700.099999999999[/format] should offer 700.09 > > > > ----- Original Message ----- > From: "Pat Holliday" > To: "WebDNA Talk" > Sent: Thursday, September 11, 2003 10:32 AM > Subject: Odd [math] behaviour > > >> Hi, >> >> When I place a simple calculation on a page WebDNA is (intermittently) >> returning results to several decimal places: >> >> E.G. >> >> [math]6000.4-5300.3[/math] >> >> returns >> >> 700.099999999999 >> >> Does anyone else find this behaviour? We're running WebDNA 5.1/MacOSX. >> >> Thanks >> >> Pat >> >> --------------------------------------------------------- >> Netro42 - http://www.netro42.com >> Web design and development >> --------------------------------------------------------- >> Netro42 Limited >> 39 - 51 Highgate Road London NW5 1RT >> T: 020 7267 7002 >> F: 020 7267 7544 >> E: mailto:patrick.holliday@netro42.com >> --------------------------------------------------------- >> >> >> ------------------------------------------------------------- >> 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/ > > > ------------------------------------------------------------- > 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/ > > --------------------------------------------------------- Netro42 - http://www.netro42.com Web design and development --------------------------------------------------------- Netro42 Limited 39 - 51 Highgate Road London NW5 1RT T: 020 7267 7002 F: 020 7267 7544 E: mailto:patrick.holliday@netro42.com --------------------------------------------------------- ------------------------------------------------------------- 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/ Pat Holliday

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:

RE: Questions To Answer (1997) SSL (1998) BUG REPORT -- Refusing connections! (1999) RE: [WebDNA] Good advise on [Showif] or alternative... (2012) Navigator 4.01 (1997) [SHOWIF AND/OR] (1997) Problem 2 of 2 (was: Shipping Confusion) (2000) POP Mail Server Reseting (1998) Need relative path explanation (1997) Dates (1998) Password protect (2000) Formating found categories (1997) searchable list archive (1997) webcat pro (1998) WC 2.0 frames feature (1997) Extended [ConvertChars] (1997) Error handling for accountNum (1997) Questions on Mac WC 3.0.5b13 (2000) Processing all html files through WebCat or Typhoon (1998) Multipart Form - Ascertain File Type (2007)