on 06-05-2009 5:27 PM
Hi Guys
for example if my source has values 10000.000 and i must pass to target the values before decimal i.e '10000'
is there any UDF to do the above requirement.
Srinivas
Thanks for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> for example if my source has values 10000.000 and i must pass to target the values before decimal i.e '10000'
> is there any UDF to do the above requirement.
Hi,
Try this one !!!
public String beforeDecimal(String a, Container container)
{
String arr[] = a.split(",");
return arr[0];
}
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You Can use format number and Place #### in properties.....
If this does not work out ....Modify this UDF ....(This UDF gives values after Decimal point):
In Arguments Tab Mention a Function name(label) and Use strcali as first Argument with cache = value
if(strcali.indexOf(".") != -1){
String subStr = strcali.substring(0,strcali.indexOf("."));
strcali = strcali.substring(strcali.indexOf("."));
if(Integer.parseInt(subStr) > 0){
strcali = Integer.parseInt(subStr) + strcali;
}
}
if(strcali.length() > 10) {
strcali = strcali.substring(0,10);
}
return strcali;
Hope this might be of some use
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
U can do this without using a UDF. Try FORMAT NUMBER function under arithmetic. It should help.
Regards,
Anurag
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.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.