MashZone NextGen 10.2 | Appendix | Legacy Presto components | Mashables and Mashups | Mashups in EMML | Advanced Mashup Techniques | Converting Numbers in Floating Point Notation
 
Converting Numbers in Floating Point Notation
The results of calculations in EMML using XPath expressions can end up in floating point notation, such as 1.625E10. To convert floating point numbers back to decimals, simply use the xs:decimal XPath function. For example:

...
<assign fromexpr="$total * $factor" outputvariable="$largeNumber"/>
<if condition="contains(string($largeNumber,’E’))">
<assign fromexpr="xs:decimal($largeNumber)" outputvariable="$largeNumber"/>
</if>
...


Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release