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?PatOn 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.comWeb design and development---------------------------------------------------------Netro42 Limited39 - 51 Highgate Road London NW5 1RTT: 020 7267 7002F: 020 7267 7544E: 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:
But that's not the answer - the answer is 700.1..Why doesn't WebDNA do straightforward calculations by default?PatOn 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.comWeb design and development---------------------------------------------------------Netro42 Limited39 - 51 Highgate Road London NW5 1RTT: 020 7267 7002F: 020 7267 7544E: 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:
WebDNA v6 & MySQL (2008)
form data submission gets truncated (1997)
Version number missing (was Mondo amounts of Mail [long]) (1999)
WebCat2.0 [format thousands .0f] no go (1997)
Feature Request: Autonumber adendum (2004)
Suggestions for Topics to be covered in an Advanced WebDNACourse... (1998)
fieldType=num (1997)
What folder??? (1999)
Using Applescript to process WebCatalog functions (1998)
WebCat2.0 [format thousands .0f] no go (1997)
SSL (1998)
Search/sort in URL Was: GuestBook example (1997)
Sendmail html/text and CCS problem (2003)
How to append text after the sign & (1997)
Snake Bites (1997)
Database Options (1997)
[WriteFile] problems (1997)
WCS Newbie question (1997)
Me know logical no need (2002)
Mac: [ListFiles] bug alert (1997)