Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format values in XSLT 1

Status
Not open for further replies.

jmeckley

Programmer
Joined
Jul 15, 2002
Messages
5,269
Location
US
I have a list of sales displayed on my page. In the footer of the table I want to have the sum of sales.

All the sales have 2 decimal places, yet the total is carried out 10 decimal places.
[tt]Example:
100.00
150.25
50.25
1000.25

Total: 1300.7499999997
[/tt]
How can I format the sum so the decimal place is only 2 digits?

Jason Meckley
Database Analyst
WITF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top