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 scientific notation....loss of accuracy possibly and looks ugly. Putting them in a text variable avoids that problem and you can STILL use text variables in a math expression provided that the contents of the text variable are numbers (or another math expression...).text variables (i believe) have been given larger name space (more memory to put stuff in)math variables have a name length limited to 12 (i think)....I believe text variables can have longer names (i'd verify this, but i'm walking out the door)...text variables van (obviously) store many more types of information (even webcat code) that math variables could never touch. Even just using a text variable with a T/F flag as opposed to a math 1/0 flag may make your code more readable...You can do cool stuff with text variables, like store FREQUENTLY used information as text variables as opposed to values in a lookup database (i do this for the skin preference file for the pubb). The reason this works faster is that the include file with all of the text variables is cached as one of the frequently accessed pages and therefore all the values are quickly loaded in, instead of having to make multiple (if not tons) of lookups to a database (for possibly the same value again and again) in order to retrieve the preferences. Just remember to make this file 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:

    
  1. Re: Text vs. Math (john Jakovich 2000)
  2. Re: Text vs. Math (Kenneth Grome 2000)
  3. Re: Text vs. Math (John Butler 2000)
  4. Re: Text vs. Math (Howard Wolosky 2000)
  5. Re: Text vs. Math (Bob Minor 2000)
  6. Re: Text vs. Math (100-Watt Puppeteer 2000)
  7. Text vs. Math (The Mooseman 2000)
Here's a not-so-well thought out quickie...putting large numbers into a math variable converts it into scientific notation....loss of accuracy possibly and looks ugly. Putting them in a text variable avoids that problem and you can STILL use text variables in a math expression provided that the contents of the text variable are numbers (or another math expression...).text variables (i believe) have been given larger name space (more memory to put stuff in)math variables have a name length limited to 12 (i think)....I believe text variables can have longer names (i'd verify this, but i'm walking out the door)...text variables van (obviously) store many more types of information (even webcat code) that math variables could never touch. Even just using a text variable with a T/F flag as opposed to a math 1/0 flag may make your code more readable...You can do cool stuff with text variables, like store FREQUENTLY used information as text variables as opposed to values in a lookup database (i do this for the skin preference file for the pubb). The reason this works faster is that the include file with all of the text variables is cached as one of the frequently accessed pages and therefore all the values are quickly loaded in, instead of having to make multiple (if not tons) of lookups to a database (for possibly the same value again and again) in order to retrieve the preferences. Just remember to make this file 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)