Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos


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:


     

     



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:


     


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






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


format-number (number, format, )



There are other options available with format-number function





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