Re: Odd [math] behaviour
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 52793
interpreted = N
texte = Adding [format .1] will work but only if you are certain that the answerwill only require one decimal place.If the whole problem is caused by the computer rather than WebDNA, how comemy Mac Calculator utility calculates properly?Regards,Tim-- Tim RobinsonIDFK Web Developmentstim@idfk.com.au114a/40 Yeo StreetNeutral Bay 2089AustraliaPhone +612 9908 2134Fax +612 9908 4837> From: "WebDna @"
> Reply-To: (WebDNA Talk)> Date: Thu, 11 Sep 2003 11:05:43 -0700> To: (WebDNA Talk)> Subject: Re: Odd [math] behaviour> > Cannot answer why, but I am glad it does not. If it did it would break other> abilities to of the math context.> > Do this and you will get 700.1> > [format .1f][math]6000.4-5300.3[/math][/format]> > ----- Original Message -----> From: "Pat Holliday" > To: "WebDNA Talk" > Sent: Thursday, September 11, 2003 10:43 AM> Subject: Re: Odd [math] behaviour> > >> 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/> > > -------------------------------------------------------------> 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/
Associated Messages, from the most recent to the oldest:
Adding [format .1] will work but only if you are certain that the answerwill only require one decimal place.If the whole problem is caused by the computer rather than WebDNA, how comemy Mac Calculator utility calculates properly?Regards,Tim-- Tim RobinsonIDFK Web Developmentstim@idfk.com.au114a/40 Yeo StreetNeutral Bay 2089AustraliaPhone +612 9908 2134Fax +612 9908 4837> From: "WebDna @" > Reply-To: (WebDNA Talk)> Date: Thu, 11 Sep 2003 11:05:43 -0700> To: (WebDNA Talk)> Subject: Re: Odd [math] behaviour> > Cannot answer why, but I am glad it does not. If it did it would break other> abilities to of the math context.> > Do this and you will get 700.1> > [format .1f][math]6000.4-5300.3[/math][/format]> > ----- Original Message -----> From: "Pat Holliday" > To: "WebDNA Talk" > Sent: Thursday, September 11, 2003 10:43 AM> Subject: Re: Odd [math] behaviour> > >> 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/> > > -------------------------------------------------------------> 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/
Tim Robinson
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:
Date search - yes or no (1997)
still having shipCost.db Problem (1997)
Running 2 two WebCatalog.acgi's (1996)
[UPPERCASE] (1997)
Negative Quantity to Shopping Cart (2005)
Looking for a Manual (1997)
Web Catalog and Net Cloak (1998)
Database Updates (1997)
PCS Frames (1997)
serial number generation (1997)
[WebDNA] Generating Excel File Via WebDNA (2010)
WebCat2b15MacPlugin - [protect] (1997)
GroupField Returns (2002)
includes (2003)
[WebDNA] TLS 1.2 and [tcpconnect] URGENT (2018)
WebCat2b13MacPlugIn - [include] (1997)
WebCatalog 2.1b3 - Plugin or cgi ? (1997)
WebCat preferences caching problem (2000)
Printing a final order (1997)
Size of WebDNA (version) market??? (2004)