Solved

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

Posted on 2013-05-27
1
1,090 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
ID: 39199482
use format-number to be sure

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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

808 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