[WebDNA] Is [math] on a number with too many digits the only way that I can get scientific notation out of webdna?
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 106985
interpreted = N
texte = Hi everyonesome 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+16Is there any other way that I can get scientific notation out of webdna?Thanks-Govinda=
Associated Messages, from the most recent to the oldest:
Hi everyonesome 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+16Is there any other way that I can get scientific notation out of webdna?Thanks-Govinda=
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:
WebCat constantly restarting (2001)
cr/cr/lf under WebSite ($WebCat.exe) confirmed (2000)
Math (1997)
Danger of [newcart] (1999)
Encryption Question (2006)
won't serve .tpl (2000)
Separate SSL Server (1997)
WebCatalog NT beta 18 now available (1997)
WebCatalog can't find database (1997)
database size? (1997)
[WebDNA] Digest from talk@webdna.us (2018)
RE: Answer: WebDelivery downloads alias, not original ? (1997)
username/password dialogue (2001)
why is this line in GeneralStore? (1998)
WebCatalog for guestbook ? (1997)
WC2f3 (1997)
Initiating NewCart (1997)
Crediting money back to a customer (2000)
RE: MacFinder -- a new WebDNA web site (1998)
Is this possible, WebCat2.0 and checkboxes (1997)