on 03-04-2008 11:33 AM
Hi All,
This is regarding the decimal number formatting.
1. I have an input but irrespective of the number of decimal digits, I always need three numbers after the decimal point. Eg. If the input if 12.1, I need 12.100
2. If only the integer part is present in the number, I need to have three zeros (000) after the decimal point. Eg. if I have 123, I need to have 123.000
3. if there are only two digits after the decimal point, e.g 12.22, I need to have 12.220
Can this be achieved using "formatNumber" function from XI?
Thank you
Solution :
Please use ".000" in the format Number Function of the Arithmatic.do not fill anything in the Decimal seperator
Source (float type) ---> format number (.000) ---> target (float type)
Hope this Helps.
Regards.
Jeet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Jeet,
We are having problem with the formatNumber function.
As mentioned by you we have used 0.0 in the Number Format paramter and nothing the Decimal Separator parameter.
We have deployed our mappings in 6 different XI servers and no where we encountered any problem.
But in customer landscape we are getting ',' (comma) as decimal separator in the output. We have checked the server regional settings it is using USA as location and the number format shows '.' (dot) as decimal separator. But in XI when the mapping runs it puts ',' as decimal separator.
The PIISUSER, PIAPPLUSER and PISUPER users all have ',' (comma) as decimal separator. But even in the 6 servers where the mapping worked as expected, in all those servers also its same configuration for these users.
Which other setting should we check or modify? We cannot modify our code in customer environment.
Regards,
Vandana
Hi,
You could achive with standard API FormatNumber in arithmatic category of Mapping.
here you could select the format that you are expecting as output as ####.### etc
source >FormatNumber->target
refer
format-number function
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb5e89a6638]
Thanks
Swarup
Edited by: Swarup Sawant on Mar 4, 2008 12:37 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.