[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1461
  • Last Modified:

How to get XSLT to stop displaying a number in scientific notation

How can I get XSLT to stop displaying a number in scientific notation? The requirement is to round up to the nearest integer.

The XSL is this:
<xsl:value-of select="ceiling($Total_CO2e_from_all_sources)"/>

The desired output is this: 1112069

The actual output is this: 1.112069E6
0
mariita
Asked:
mariita
1 Solution
 
Geert BormansCommented:
use format-number to be sure

<xsl:value-of select="format-number(ceiling($Total_CO2e_from_all_sources), '#')"/>
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now