Hi all!
I'm completely new to XSL and I'm trying to do some simple calculations using variables and arithmetic operators. However, I can't figure how to do divide operations. Here's what I'm trying to do:
<xsl:value-of select="format-number(((($mySecondVar - $myFirstVar) / $myFirstVar)*100), '##0.00')"/>
I can't get the division part to work.
Basically, I'm trying to get the % increase from 'myFirstVar' to 'mySecondVar'. Is there a way to do divisions with XSL, or is there an alternate way to do the calculation?
Thanks in advance!!
I'm completely new to XSL and I'm trying to do some simple calculations using variables and arithmetic operators. However, I can't figure how to do divide operations. Here's what I'm trying to do:
<xsl:value-of select="format-number(((($mySecondVar - $myFirstVar) / $myFirstVar)*100), '##0.00')"/>
I can't get the division part to work.
Basically, I'm trying to get the % increase from 'myFirstVar' to 'mySecondVar'. Is there a way to do divisions with XSL, or is there an alternate way to do the calculation?
Thanks in advance!!