cancel
Showing results for 
Search instead for 
Did you mean: 

[CPI]: Simple Multiplication in XSLT Mapping

babruvahana
Contributor
0 Kudos

Hi Experts,

I am facing a strange issue in XSLT mapping which works fine with my testing in visual studio. But, the same is giving a different result in the Integration Suite simulation/Iflow run.

The requirement is to multiply the source volume value by 1000. PFB below details:

Mapping:

Source Field Value:

Expected Output after mapping: 22770000

Integration Suite Output: 2.277E7

Any suggestions or leads will be really helpful.

Regards,

Pavan

View Entire Topic
robertfels
Participant

To prevent the output of a number in scientific notation (e.g., 2.277E7) and instead output it as a standard decimal number (e.g., 22770000), you can use the format-number function in your XSLT code.

<xsl:template match="/">
  <xsl:variable name="number" select="2.277E7" />
  <output>
    <xsl:value-of select="format-number($number, '#')" />
  </output>
</xsl:template>