Re: [WebDNA] Strange MATH result

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104369
interpreted = N
texte = --Apple-Mail-13--651058075 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit I feel like I want to look up scientific notation to be sure what "e-015" means.. but I think it means to move the decimal to the left 15 places... which means the number is not zero (as you expected), but instead just very very small.. (close to zero).. and I suspect it has to do with the way webdna source is working with numbers... you know in coding languages there are various kinds of numbers (like 'integer' or 'long').. with varying amounts of ram/HD alloted to store them.. and the more space alloted - the more accurate/fine- grained the calculations. Well in webdna we do not have access to those number var types so I think the answer is that you just have to live with it.. and round to get a reasonable result that works for your purposes.. Or there could be tricks to workaround.. maybe if you show what you are really doing in a larger context (and/or show your algorithm before it evaluates to those numbers) then someone will have a creative idea.. -G On Jan 11, 2010, at 9:17 PM, Stuart Tremain wrote: > Why does [math]36.70+0.00+0.00+0.00-6.95-29.75[/math] = > 3.5527136788005e-015 ????? > > > Regards > > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au > > > > ------------ Govinda govinda.webdnatalk@gmail.com --Apple-Mail-13--651058075 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable I feel like I want to look up = scientific notation to be sure what "e-015" means.. =  but I think it means to move the decimal to the left 15 places... = which means the number is not zero (as you expected), but instead just = very very small..  (close to zero)..   and I suspect it has to = do with the way webdna source is working with numbers...  you know = in coding languages there are various kinds of numbers (like 'integer' = or 'long')..  with varying amounts of ram/HD alloted to store = them.. and the more space alloted - the more accurate/fine-grained the = calculations.  Well in webdna we do not have access to those number = var types  so I think the answer is that you just have to live with = it.. and round to get a reasonable result that works for your purposes.. =  

Or there could be tricks to workaround..  maybe if = you show what you are really doing in a larger context (and/or show your = algorithm before it evaluates to those numbers) then someone will have a = creative idea..

-G


On Jan 11, 2010, at 9:17 PM, Stuart = Tremain wrote:

Why = does [math]36.70+0.00+0.00+0.00-6.95-29.75[/math] = =3D 3.5527136788005e-015 ?????


Regards

Stuart = Tremain
IDFK Web Developments
AUSTRALIA



=

=
=

= --Apple-Mail-13--651058075-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Strange MATH result (Stuart Tremain 2010)
  2. Re: [WebDNA] Strange MATH result (JJ WebDNA 2010)
  3. Re: [WebDNA] Strange MATH result - BUG (Govinda 2010)
  4. Re: [WebDNA] Strange MATH result (christophe.billiottet@webdna.us 2010)
  5. Re: [WebDNA] Strange MATH result (christophe.billiottet@webdna.us 2010)
  6. Re: [WebDNA] Strange MATH result - BUG (Stuart Tremain 2010)
  7. Re: [WebDNA] Strange MATH result - BUG (Govinda 2010)
  8. Re: [WebDNA] Strange MATH result (Stuart Tremain 2010)
  9. Re: [WebDNA] Strange MATH result (Govinda 2010)
  10. Re: [WebDNA] Strange MATH result - BUG (Stuart Tremain 2010)
  11. [WebDNA] Strange MATH result (Stuart Tremain 2010)
--Apple-Mail-13--651058075 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit I feel like I want to look up scientific notation to be sure what "e-015" means.. but I think it means to move the decimal to the left 15 places... which means the number is not zero (as you expected), but instead just very very small.. (close to zero).. and I suspect it has to do with the way webdna source is working with numbers... you know in coding languages there are various kinds of numbers (like 'integer' or 'long').. with varying amounts of ram/HD alloted to store them.. and the more space alloted - the more accurate/fine- grained the calculations. Well in webdna we do not have access to those number var types so I think the answer is that you just have to live with it.. and round to get a reasonable result that works for your purposes.. Or there could be tricks to workaround.. maybe if you show what you are really doing in a larger context (and/or show your algorithm before it evaluates to those numbers) then someone will have a creative idea.. -G On Jan 11, 2010, at 9:17 PM, Stuart Tremain wrote: > Why does
[math]36.70+0.00+0.00+0.00-6.95-29.75[/math] = > 3.5527136788005e-015 ????? > > > Regards > > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au > > > > ------------ Govinda govinda.webdnatalk@gmail.com --Apple-Mail-13--651058075 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable I feel like I want to look up = scientific notation to be sure what "e-015" means.. =  but I think it means to move the decimal to the left 15 places... = which means the number is not zero (as you expected), but instead just = very very small..  (close to zero)..   and I suspect it has to = do with the way webdna source is working with numbers...  you know = in coding languages there are various kinds of numbers (like 'integer' = or 'long')..  with varying amounts of ram/HD alloted to store = them.. and the more space alloted - the more accurate/fine-grained the = calculations.  Well in webdna we do not have access to those number = var types  so I think the answer is that you just have to live with = it.. and round to get a reasonable result that works for your purposes.. =  

Or there could be tricks to workaround..  maybe if = you show what you are really doing in a larger context (and/or show your = algorithm before it evaluates to those numbers) then someone will have a = creative idea..

-G


On Jan 11, 2010, at 9:17 PM, Stuart = Tremain wrote:

Why = does [math]36.70+0.00+0.00+0.00-6.95-29.75[/math] = =3D 3.5527136788005e-015 ?????


Regards

Stuart = Tremain
IDFK Web Developments
AUSTRALIA



=

=
=

= --Apple-Mail-13--651058075-- Govinda

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:

Weird problems with [SHOWIF]s (1997) StoreBuilder Shopping Cart (2000) Webstar 4.2 Stops Serving (2000) Database Program (1997) users.db (1999) What file? (1997) WebCatalog can't find database (1997) formula??? (2000) ShowNext (1997) WebCat b15 Mac plug-in (1997) problems with 2 tags (1997) Reload adding to cart (2001) [WebDNA] TLS 1.2 and [tcpconnect] (2018) [WriteFile] problems (1997) OT: NT mac sharing (1998) Problems with [Search] param - Mac Plugin b15 (1997) Installer needed (2004) help needed: Non-english characters in WebCatalog (1997) WebCat for mass emailings (1997) Protect (1997)