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:
too many nested tags ... (1997)
2nd WebCatalog2 Feature Request (1996)
Firewalls - What's Good? (1999)
Pithy questions on webcommerce & siteedit (1997)
WebDNA version? (2007)
[WebDNA] An actual attempt to get WebDNA and MAMP Pro to work - (2018)
[SearchString] problem with [search] context (1997)
[WebDNA] Searching Possible Bug (2009)
WebCatalog can't find database (1997)
[WebDNA] .html extension (2012)
Secure server question (1997)
Further tests with the infamous shipCost (1997)
[foundItems] context problem (2000)
So many lookers, hey smith micro (2003)
webmerchant 3.0 questions (1999)
Speed Test Results Dell 2650 Xeon 2.4ghz (2002)
setting taxable to true (1997)
WebCat/PDF Integration Time Est (2000)
blank page from template (1997)
attn: smitmicro - cart limitation (2002)