Solved

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

Posted on 2013-05-27
1
1,001 Views
Last Modified: 2013-05-27
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
Comment
Question by:mariita
1 Comment
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 500 total points
Comment Utility
use format-number to be sure

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

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now