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 = 106994
interpreted = N
texte = Better yet:[math]999999999999998+1[/math]: 999999999999999[math]999999999999998+2[/math]: 1e+15MarcOn 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 ThompsonSoftware EngineerMedia SolutionsUniversity Information TechnologyUniversity of Utah801.585.9264marc.thompson@utah.edu-------------------------------------------
Associated Messages, from the most recent to the oldest:
Better yet:[math]999999999999998+1[/math]: 999999999999999[math]999999999999998+2[/math]: 1e+15MarcOn 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 ThompsonSoftware EngineerMedia SolutionsUniversity Information TechnologyUniversity of Utah801.585.9264marc.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:
Off-Topic: List of common port numbers? (2002)
mass mailing (1998)
Country & Ship-to address & other fields ? (1997)
WebDNA with Virtual Hosts (2007)
Authenticate (1997)
Users.db [encrypt seed=????] (1998)
I found a bug ... (1997)
Exclude by date - multiple (1997)
WebCatalog Plug-in for Webstar. (1997)
Help name our technology! (1997)
[OT] Site test... (2003)
same product in cart (1997)
Bug Report, maybe (1997)
WebCat2 - Getting to the browser's username/password data (1997)
payflowpro problem #3 (2003)
Emailer setup (1997)
WebDelivery downloads alias, not original ? (1997)
Multiple fields on 1 input (1997)
multiple search commands (1997)
California Tax Rates (1998)