title: Divide and Multiply value-of-select in XSLT
body: <p>Just want to multiply the value-of select by 1000000 after div, very new to this; I'm sure it's a easy question for someone. Thanks in advance.</p>
  
  <pre><code>&lt;xsl:value-of select="AbsolutePos/@x div 80" /&gt;
  </code></pre>
  
  <p>Wanting to multiply by 1000000, don't think this is right, hence is returning incorrect value</p>
  
  <pre><code>&lt;xsl:value-of select="AbsolutePos/@x div 80 * 1000000" /&gt;
  </code></pre>
  
  <p>Continued: Have the following XML</p>
  
  <pre><code>&lt;AbsolutePos x="-1.73624e+006" y="-150800" z="40000"&gt;&lt;/AbsolutePos&gt;
  </code></pre>
  
  <p>Needing to change to </p>
  
  <pre><code>&lt;PInsertion&gt;-21703,-1885,500&lt;/PInsertion&gt;
  </code></pre>
  
  <p>Using XSL</p>
  
  <pre><code>&lt;PInsertion&gt;&lt;xsl:value-of select="AbsolutePos/@x div 80 * 1000000" /&gt;,&lt;xsl:value-of select="AbsolutePos/@y div 80" /&gt;,&lt;xsl:value-of select="AbsolutePos/@z div 80" /&gt;&lt;/PInsertion&gt;
  </code></pre>
  
  <p>Though receiving</p>
  
  <pre><code>&lt;PInsertion&gt;NaN,-1885,500&lt;/PInsertion&gt;
  </code></pre>
  
  <p>Suppose to take the X value and divide it by 80 then multiply by 10000 to return -21703</p>