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 ofa normal number and this cause problems inside the math tags. I have founda 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 BambiniVampire Softwarehttp://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:
|
- Scientific notation to number, a solution? (Marco Bambini 2001)
|
Sometimes the price is written to orders in scientific notation instead ofa normal number and this cause problems inside the math tags. I have founda 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 BambiniVampire Softwarehttp://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:
OT: upload, embed flash movies (2007)
PSC recommends what date format yr 2000??? (1997)
Not really WebCat- (1997)
IIS4 (1998)
Upgrade to web DNA6.0 problem (2004)
WebCat2b12 CGI Mac - [shownext] problem (1997)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
Processing all html files through WebCat or Typhoon (1998)
Where is the bug fix info for 4.0.1? (2000)
MacOS alias identification? (1998)
problem serving foreign languages text (1997)
Re:no [search] with NT (1997)
show all problem (1997)
[WebDNA] Conditional search (2009)
Performance of this mailserver (2000)
[WebDNA] Successful, working WebDNA7/CentOS install? (2013)
Categories and Sub-categories (2003)
Memory Leak (2000)
WebDNA Examples - Call for submission... (1998)
RE: Error reading data -1 (1997)