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:

webcat NT with [dos] command (1997) Here we go again... was: DDEConnect not working (2006) .eml files (2001) A Global Variable (1997) PCS Frames (1997) Webcat does auto checksum in [setheader]? (1999) webdna users.db (2005) Resume Catalog ? (1997) WebCat2 - Getting to the browser's username/password data (1997) [FileInfo] (1998) [LOOKUP] (1997) Multiple catalog databases and showcart (1997) Odd Cart Behavior (1997) Busy WebCatalog (2000) WebCatalog vs. Cold Fusion (1998) Multi-processor Mac info ... (1997) Setting up shop (1997) [WebDNA] getting a cookie to expire (2015) WebMerchant when CC network is down (1998) [LookUp] (1999)