on 09-24-2009 1:49 PM
Hello All,
In my scenario,I have to use standard divide function.
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 = 173.3333
I tried "round" function but its not giving proper output in certain cases.
I am expecting output should be 2 decimals rounded.
Can anybody tell me the way to get it or Any UDF.
Thanks a lot.
Harry
Hi Reddy,
The blog given by sunil has an example of round function. This exactly should solve your issue. Create the same udf function.
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harry,
Just have a look at this blog.
Never, ever use XI's built-in arithmetic functions
/people/thorsten.nordholmsbirk/blog/2006/04/03/never-ever-use-xis-built-in-arithmetic-functions
Hope it would solve your issue !!!
Regards,
Sunil Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey,
What you have to do is: after getting the result of the Divide function, you have to take that as an input for the FormatNumber function (also included in the Arithmetic group), and that will transform your number with 2 decimals. Using also the standard value that it has: Number Format: ###,###,###.## and Decimal Separator: <empty>
Regards,
Juan
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 | |
10 | |
7 | |
6 | |
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.