In xslt when I divide numbers, like
<xsl:value-of select="number( $field ) div number( $factor )"/>
result value can contain E (10 power) like 8.004091E9
How to make it return proper value => 8004091000 without Es ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In XSLT 1.0, the output should never be in scientific notation, so I assume you are using XSLT 2.0.
In XSLT 2.0, the output should be in scientific notation if (a) it’s a float or double, (b) its absolute value is outside the range 1e-6 to 1e+6.
One way to avoid getting output in scientific notation is to format it using format-number().
Another way is to avoid floating point: for example, in place of
use