on 12-11-2015 4:11 AM
Hi Experts,
I have a requirement in which i need to round of the value after 3 decimal places.
For e.g. I have 2 inputs X and Y.
X/Y gaves a value .....lets say its 12348.896975553
Than i want my output to be like 12348.897 (values rounded up till 3 decimal places)
Can you please suggest how to achieve this?
Can this be handled through mapping or we need to write a UDF for this.
Regards,
CB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi dear,
simply you can pass that value to packed decimal data type..
have a look below sample programme.
DATA: N1 TYPE P DECIMALS 9 VALUE '12348.896975553',
N2 TYPE P DECIMALS 3.
MOVE N1 TO N2.
WRITE: N2.
output : 12,348.897
hope it is help full.
BR.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Chandrabhan,
Use Format function
Input----> Format Function(00000.000)---> Output.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
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.