Skip to Content


The Weblog deals with printing numeric data in some specific format. For ease of understanding lets take a simple paradigm.
Let’s consider a scenario in which our source and target both are files.

In the Input we have three items under the ‘Product’ node and they are ‘productNo’, ‘fstPrice’ and ‘secPrice’.

Below are the type and length of each element:

      image

     

In target we have two items and they are ‘productNo’ and ‘totalPrice’ which is the aggregation of ‘fstPrice’ and ‘secPrice’.

Below are the type and length of each element:

image

     

The intended output here is that the values should be printed in integer format, the way it comes after calculation. By default if the size is large, the output comes in E format but we need that data should not contain E in it, whatever large the size of data could be.

For example the sample source data is as follows:

      image

     

image

But our expected output is as follows (No E representation in the totalPrice whatever be the size of the totalPrice):

image

format-number (number, format, )

There are other options available with format-number function

image

So in case, we need the output data in some specific format, we can use this function to get the output in desired format.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply