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:
Checking for pre-existing passwords (1998)
Why is my easy [AddLineItems] NOT working?? MORE (2000)
[include] and v.email (1998)
Encrypting WebDNA Templates (1999)
Why doesn't it change? (1998)
calender with business days (1998)
Secure Server (1997)
SetLineItem (1997)
Running _every_ page through WebCat ? (1997)
[WebDNA] Non-numbers entered into a field that asks for a (2008)
Problems with ^ could be solved with [REPLACE CHARACTERS] (1997)
WCS Newbie question (1997)
HTTP 404 / Error Mapping (2001)
Snake Bites (1997)
A little syntax help (1997)
Newbie trouble with [url] & [foundItems] (2000)
SKU (1997)
Custom Shipping Charges (1997)
about this server and links to who (1997)
Change Subtotal (2000)