Does anyone now why the following code rounds erratically?
To give you an example,
$originalValue=2.375 unformatted result=60.325 result=60.33
$originalValue=2.875 unformatted result=73.025 result=73.02
What i'm attempting to do is provide a value rounded to the nearest second decimal place.
Code:
<xsl:value-of select="format-number(round($originalValue*25.4*100)*0.01,'#.00')"/>
To give you an example,
$originalValue=2.375 unformatted result=60.325 result=60.33
$originalValue=2.875 unformatted result=73.025 result=73.02
What i'm attempting to do is provide a value rounded to the nearest second decimal place.