Subject: Re: [xsl] format-number round is not desired From: Michael Kay <mike@xxxxxxxxxxxx> Date: Mon, 23 Apr 2012 11:06:48 +0100 |
Michael Kay Saxonica
Hi guys There is still a penalty, now If the number is negative the floor funciton rounds! Sample: $var = - 20624.50 output = -0000000020625 ------------------------------------- The output should be -0000000020624 ?
----- Urspr|ngliche Message -----
Von: henry human<henry_human@xxxxxxxx>
An: "xsl-list@xxxxxxxxxxxxxxxxxxxxxx"<xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
CC:
Gesendet: 15:09 Donnerstag, 19.April 2012
Betreff: Re: [xsl] format-number round is not desired
Hi all! That is the solution! Thanks a lot! Kind regards Hen
----- Urspr|ngliche Message ----- Von: Martin Honnen<Martin.Honnen@xxxxxx> An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx CC: Gesendet: 13:59 Donnerstag, 19.April 2012 Betreff: Re: [xsl] format-number round is not desired
henry human wrote:Hello I have following : $var = 206000.7625 <xsl:value-of select="format-number($var ,'00000000000000;00000000000000') "/> Output is 00000000206001 As you see the output is rounded, what is not desired! This should be the output: 00000000206000 (the same as in $var = 206000)Does format-number(floor($var), '00000000000000;00000000000000') do what you want?
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] format-number round is no, henry human | Thread | Re: [xsl] format-number round is no, Andrew Welch |
Re: [xsl] format-number round is no, David Carlisle | Date | Re: [xsl] format-number round is no, Andrew Welch |
Month |