Re: [WebDNA] Strange MATH result

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104370
interpreted = N
texte = --Apple-Mail-56--650809070 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Dead easy Govinda I am trying to add/subtract some numbers and get a correct result, there = is no creativity to it, that has already been done. Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 12/01/2010, at 3:44 PM, Govinda wrote: > 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.. =20 >=20 > 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.. >=20 > -G >=20 >=20 > On Jan 11, 2010, at 9:17 PM, Stuart Tremain wrote: >=20 >> Why does [math]36.70+0.00+0.00+0.00-6.95-29.75[/math] =3D = 3.5527136788005e-015 ????? >>=20 >>=20 >> Regards >>=20 >> Stuart Tremain >> IDFK Web Developments >> AUSTRALIA >> webdna@idfk.com.au >>=20 >>=20 >>=20 >>=20 >=20 > ------------ > Govinda > govinda.webdnatalk@gmail.com >=20 >=20 >=20 >=20 --Apple-Mail-56--650809070 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Dead = easy Govinda

I am trying to add/subtract some numbers = and get a correct result, there is no creativity to it, that has already = been done.

Regards

Stuart = Tremain
IDFK Web Developments
AUSTRALIA




On 12/01/2010, at 3:44 PM, Govinda wrote:

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-56--650809070-- 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-56--650809070 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Dead easy Govinda I am trying to add/subtract some numbers and get a correct result, there = is no creativity to it, that has already been done. Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 12/01/2010, at 3:44 PM, Govinda wrote: > 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.. =20 >=20 > 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.. >=20 > -G >=20 >=20 > On Jan 11, 2010, at 9:17 PM, Stuart Tremain wrote: >=20 >> Why does
[math]36.70+0.00+0.00+0.00-6.95-29.75[/math] =3D = 3.5527136788005e-015 ????? >>=20 >>=20 >> Regards >>=20 >> Stuart Tremain >> IDFK Web Developments >> AUSTRALIA >> webdna@idfk.com.au >>=20 >>=20 >>=20 >>=20 >=20 > ------------ > Govinda > govinda.webdnatalk@gmail.com >=20 >=20 >=20 >=20 --Apple-Mail-56--650809070 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Dead = easy Govinda

I am trying to add/subtract some numbers = and get a correct result, there is no creativity to it, that has already = been done.

Regards

Stuart = Tremain
IDFK Web Developments
AUSTRALIA




On 12/01/2010, at 3:44 PM, Govinda wrote:

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-56--650809070-- Stuart Tremain

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:

Less than or equal to........ (1997) Variables not being passed *back* (2000) Merging databases (1997) [WebDNA] How to code a 301 redirect (2008) Negative Range Error (2003) I forgot (1998) [movefile] create stationery files (1998) [WebDNA] Password Generator (2012) WC with Paymentnet/Signio/Verisign (2000) Searching with a form (2000) dbEdit (2003) Country & Ship-to address & other fields ? (1997) Date Range search (1997) [WebDNA] Retrieving a PDF from an email (2008) HELP!? (2002) [LOOKUP] (1997) Fun with Dates - any progress? (1997) A question on sub-categories (1997) Re[2]: Using the sendmail command on CGate Pro (Unix) (2000) Help Encrypt/Decrypt eMail (2003)