Re: Text vs. Math
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 26367
interpreted = N
texte = Here's a not-so-well thought out quickie...putting large numbers into a math variable converts it into scientificnotation....loss of accuracy possibly and looks ugly. Putting them in atext variable avoids that problem and you can STILL use text variables ina math expression provided that the contents of the text variable arenumbers (or another math expression...).text variables (i believe) have been given larger name space (more memoryto put stuff in)math variables have a name length limited to 12 (i think)....I believetext variables can have longer names (i'd verify this, but i'm walking outthe door)...text variables van (obviously) store many more types of information (evenwebcat code) that math variables could never touch. Even just using atext variable with a T/F flag as opposed to a math 1/0 flag may make yourcode more readable...You can do cool stuff with text variables, like store FREQUENTLY usedinformation as text variables as opposed to values in a lookup database(i do this for the skin preference file for the pubb). The reason thisworks faster is that the include file with all of the text variables iscached as one of the frequently accessed pages and therefore all thevalues are quickly loaded in, instead of having to make multiple (if nottons) of lookups to a database (for possibly the same value again andagain) in order to retrieve the preferences. Just remember to make thisfile a secure file so it can't be retrieved over the web.That's all from the top of my head. I'm outta here. g'night.-HowardOn Fri, 21 Jan 2000, The Mooseman wrote:> > Would anyone like to extoll the virtues> of setting variables via [math] or [text]?> > What is the real differnces between them and> their following use?> > Any reason for choosing one over the other?> > > Mooseman> > > -------------------------------------------------------------> Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.> To end your Mail problems go to
.> > This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > -------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Associated Messages, from the most recent to the oldest:
Here's a not-so-well thought out quickie...putting large numbers into a math variable converts it into scientificnotation....loss of accuracy possibly and looks ugly. Putting them in atext variable avoids that problem and you can STILL use text variables ina math expression provided that the contents of the text variable arenumbers (or another math expression...).text variables (i believe) have been given larger name space (more memoryto put stuff in)math variables have a name length limited to 12 (i think)....I believetext variables can have longer names (i'd verify this, but i'm walking outthe door)...text variables van (obviously) store many more types of information (evenwebcat code) that math variables could never touch. Even just using atext variable with a T/F flag as opposed to a math 1/0 flag may make yourcode more readable...You can do cool stuff with text variables, like store FREQUENTLY usedinformation as text variables as opposed to values in a lookup database(i do this for the skin preference file for the pubb). The reason thisworks faster is that the include file with all of the text variables iscached as one of the frequently accessed pages and therefore all thevalues are quickly loaded in, instead of having to make multiple (if nottons) of lookups to a database (for possibly the same value again andagain) in order to retrieve the preferences. Just remember to make thisfile a secure file so it can't be retrieved over the web.That's all from the top of my head. I'm outta here. g'night.-HowardOn Fri, 21 Jan 2000, The Mooseman wrote:> > Would anyone like to extoll the virtues> of setting variables via [math] or [text]?> > What is the real differnces between them and> their following use?> > Any reason for choosing one over the other?> > > Mooseman> > > -------------------------------------------------------------> Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.> To end your Mail problems go to .> > This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > -------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Howard Wolosky
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:
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Caching [include] files ... (1997)
SUBMIT buttons not working.... (2000)
[lookup] is case-sensitive, [lookup] is case sensitive... (2003)
japanese characters (1997)
[WebDNA] NoSQL: sharing some ideas (2013)
[SearchString] problem with [search] context (1997)
Hiding HTML and page breaks (1997)
Unexpected error (1997)
database size? (1997)
Help name our technology! I found it (1997)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
WebCat2b13MacPlugIn - [include] (1997)
Webdna Email and Plesk Control Panel (2005)
Trouble with Netscape (1998)
Separate SSL Server (1997)
ConvertChars (1998)
Serving images from databases (1998)
Questions To Answer (1997)
Me know logical no need (2002)