|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
remove commas
Hi
Is there any way to remove a comma from a number using xsl ? e.g I have the following number: <MonetaryAmount>842,194.0000000</MonetaryAmount> but want only: 842194.00 Cheers Damien |
|
#2
|
|||
|
|||
|
__________________
http://www.jarra.nl |
|
#3
|
|||
|
|||
|
number-format
Hi jarra
I have tried this and it will not work, it looks like the function is unable to interpret the , and the output when I apply my stylesheet is NaN.......so something like the following will not work, I think: <xsl:value-of select="format-number(123,000.5566, '######.00')"/> |
|
#4
|
|||
|
|||
|
hi
for anyone interested I solved this problem by doing the following: <xsl:value-of select="format-number(translate(123,555.5566, ',', ''), '.00')"/> to give the result 123555.55 i.e what I wanted.... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > remove commas |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|