on 08-17-2009 2:16 PM
Hi Everybody,
I am currently working on an XSLT map for a client runnig a 6.20 System.
The mapping has the following part:
<xsl:value-of select="format-number(substring(QUANTITY,2) div 1000,'#.00')"/>
The source QUANTITY value is 0000000000009950 (3 decimals)
The result shoudl be 9.95 but instead it is 9.94.
Can anybody explain either what I am doing wrong or coudl this be a bug?
Thank you for your help.
Kind Regards
Soeren Baek
Hi Baek,
<xsl:value-of select="format-number(substring(QUANTITY,2) div 1000,'#.00')"/>
The source QUANTITY value is 0000000000009950 (3 decimals)
The result shoudl be 9.95 but instead it is 9.94.
Here the result variation is because of the div operation. You come across this issue while using the float type operands and perform div on operands in ABAP programming.
Regards,
Prasanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
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.