on 09-24-2009 1:45 PM
Hello All,
In my scenario,I have to use standard divide function which comes under category Arithmetic.
For example : If i divide the value 1525.71 by 3.000 It should give output as 508.57
but with divide function its giving output as 508.56998.
2) 520.00/3.000 =
I tried "round"
Can anybody tell me the
Hi,
You can use the function formatNumber and set that as 000.00 after calling the divide function.
This will work.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
refer this for how to use a standard function in a UDF
creat a UDF with 2 argument a and b
import com.sap.aii.mappingtool.flib3.Arithm;
Arithm ar = new Arithm();
return ar.div(a,b,container);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Sorry the same solution is already given by Ravi.
Regards,
Sarvesh
Edited by: Sarvesh Singh on Sep 24, 2009 7:18 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Did you tried googling!!!
BTW check these http://www.roseindia.net/java/beginners/RoundTwoDecimalPlaces.shtml
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.