Re: [WebDNA] Is [math] on a number with too many digits the only

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106993
interpreted = N
texte = Solaris Ver.6.2a For [math][cart]+1[/math] If [cart] is greater than 15 characters, I get scientific notation. Marc On 7/19/2011 8:47 AM, Govinda wrote: > Hi everyone > > some legacy code in one client's very large system was doing manual incrementing (not using the AUTONUMBER param) on a numeric uniqueID field as a way to generate the next ID for appending records.. and that was OK in olden days.. when there was less traffic.. but now it can happen that two people can cause the file to fire simultaneously .. each trying to run before the other is finished.. causing the uniqueID which gets generated to be a dupe on occasion. So we replaced every place we could find such code with code that uses [cart] strings instead of the plain incrementing number.. (so the uniqueID]s become cart strings.. and all should be happy-ever-after... BUT there is (I am guessing) still some code somewhere (which we have not yet found) that is trying to increment (+1) to that field.. and when it now happens to be a cart number (which is a number with a lot of digits), then the result of the [math] operation (incrementing code) is scientific notation. (i.e. " 1.31108545312375e+16")... and that is causing some problems elsewhere.. > > so besides us just needing to find any remaining places where code is trying to increment that field value.. I also thought it timely to ask here: > > Is doing [math] on a number with too many digits the only way any of you has seen webdna generate scientific notation? ...Or how else? > > the only way *I* know of, to cause that, is like so: > > this: > [math][cart]+1[/math] > > produces: > 1.31108545312375e+16 > > Is there any other way that I can get scientific notation out of webdna? > > Thanks > -Govinda--------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list. > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > . > -- ------------------------------------------- Marc Thompson Software Engineer Media Solutions University Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Is [math] on a number with too many digits the only way that I can get scientific notation out of webdna? (Stuart Tremain 2011)
  2. Re: [WebDNA] Is [math] on a number with too many digits the only way that I can get scientific notation out of webdna? (Govinda 2011)
  3. Re: [WebDNA] Is [math] on a number with too many digits the only way that I can get scientific notation out of webdna? (Govinda 2011)
  4. Re: [WebDNA] Is [math] on a number with too many digits the only (Donovan Brooke 2011)
  5. Re: [WebDNA] Is [math] on a number with too many digits the only (Marc Thompson 2011)
  6. Re: [WebDNA] Is [math] on a number with too many digits the only (Marc Thompson 2011)
  7. Re: [WebDNA] Is [math] on a number with too many digits the only (Donovan Brooke 2011)
  8. Re: [WebDNA] Is [math] on a number with too many digits the only way that I can get scientific notation out of webdna? (Govinda 2011)
  9. Re: [WebDNA] Is [math] on a number with too many digits the only way that I can get scientific notation out of webdna? (Kenneth Grome 2011)
  10. Re: [WebDNA] Is [math] on a number with too many digits the only (Dan Strong 2011)
  11. Re: [WebDNA] Is [math] on a number with too many digits the only (Donovan Brooke 2011)
  12. Re: [WebDNA] Is [math] on a number with too many digits the only way that I can get scientific notation out of webdna? (Govinda 2011)
  13. Re: [WebDNA] Is [math] on a number with too many digits the only (Donovan Brooke 2011)
  14. [WebDNA] Is [math] on a number with too many digits the only way that I can get scientific notation out of webdna? (Govinda 2011)
Solaris Ver.6.2a For [math][cart]+1[/math] If [cart] is greater than 15 characters, I get scientific notation. Marc On 7/19/2011 8:47 AM, Govinda wrote: > Hi everyone > > some legacy code in one client's very large system was doing manual incrementing (not using the AUTONUMBER param) on a numeric uniqueID field as a way to generate the next ID for appending records.. and that was OK in olden days.. when there was less traffic.. but now it can happen that two people can cause the file to fire simultaneously .. each trying to run before the other is finished.. causing the uniqueID which gets generated to be a dupe on occasion. So we replaced every place we could find such code with code that uses [cart] strings instead of the plain incrementing number.. (so the uniqueID]s become cart strings.. and all should be happy-ever-after... BUT there is (I am guessing) still some code somewhere (which we have not yet found) that is trying to increment (+1) to that field.. and when it now happens to be a cart number (which is a number with a lot of digits), then the result of the [math] operation (incrementing code) is scientific notation. (i.e. " 1.31108545312375e+16")... and that is causing some problems elsewhere.. > > so besides us just needing to find any remaining places where code is trying to increment that field value.. I also thought it timely to ask here: > > Is doing [math] on a number with too many digits the only way any of you has seen webdna generate scientific notation? ...Or how else? > > the only way *I* know of, to cause that, is like so: > > this: > [math][cart]+1[/math] > > produces: > 1.31108545312375e+16 > > Is there any other way that I can get scientific notation out of webdna? > > Thanks > -Govinda--------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list. > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > . > -- ------------------------------------------- Marc Thompson Software Engineer Media Solutions University Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- Marc Thompson

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] Crashing Database (2011) price on detail, but not shoppingcart (1997) RE: [WebDNA] Secure Cookies (2020) GD Scumbucket Spammer (2004) OT: Amazon Patents (2000) Setting up shop (1997) .html processing? (1998) RE: new cart IDs being assigned somehow (1997) updating checkbox in a db (1998) NewCart+Search with one click ? (1997) WebCat2b15MacPlugin - showing [math] (1997) Great product and great job ! (1997) Emailer (1997) hideif glitch (2003) Possible Bug in 2.0b15.acgi (1997) Emailer (1997) Multiple prices (1997) E-mailer error codes (1997) 2nd WebCatalog2 Feature Request (1996) Emailer Problem (2000)