Scientific notation to number, a solution?

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 38650
interpreted = N
texte = Sometimes the price is written to orders in scientific notation instead of a normal number and this cause problems inside the math tags. I have found a solution to this problem and I would like to know what you think.My solution is to use grep:[Text]num=[Math][Grep search=(e )&replace=*10^]2.6e 06[/Grep][/Math][/Text] [Text]num2=[Math][Grep search=(e )&replace=*10^]5400000[/Grep][/Math][/Text][num],[num2]It works either with numbers in scientific notation and with normal numbers.Is it OK?Regards, -- Marco Bambini Vampire Software http://www.vampiresoft.com------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Scientific notation to number, a solution? (Marco Bambini 2001)
Sometimes the price is written to orders in scientific notation instead of a normal number and this cause problems inside the math tags. I have found a solution to this problem and I would like to know what you think.My solution is to use grep:[text]num=[math][Grep search=(e )&replace=*10^]2.6e 06[/Grep][/Math][/Text] [text]num2=[math][Grep search=(e )&replace=*10^]5400000[/Grep][/Math][/Text][num],[num2]It works either with numbers in scientific notation and with normal numbers.Is it OK?Regards, -- Marco Bambini Vampire Software http://www.vampiresoft.com------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Marco Bambini

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:

Discounts: Buy One, Get One =?ISO-8859-1?Q?99=A2?= (2004) Browser Problem?!? Still getting Error message using POST! (1997) Proposed FormVariables hierarchy (2000) [WebDNA] ListMIMEHeaders (2008) Hiding HTML and breaking the page (1997) EmailCompleted Clean Up (2001) [isfile] ? (1997) Not really WebCat - need HTML Grider (1997) Generating and appending SKU to a db automatically (1998) Don't tick me off :) [elaspedtime] (1997) File Uploads... (1997) WebDNA 4.5 on CentOS (2006) FEW QUESTIONS (1997) 2.0 Info (1997) Am I going senile? (Price recalc based on quantity) (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) 2 easy questions re: [showif] and [sendmail] (1997) WebDNA Book? (2003) How do you TEAM Code? (2004) Moment of Thanks (1997)