on 03-05-2008 5:03 AM
Hi everybody,
How can I have all the digits of the source field in the target field with the decimal pont removed.
Source field --1.2345
target field --12345
thanks,
Ramya Shenoy
HI use standard function REPLACE STRING
or
Multiply the source field with 10000 and use FORMAT NUM function
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Prepare an udf to remove decimal point.
you can use the following java code for udf .
String s1="";
for( int i=0; i<a.length();i++)
{
if (a.charAt(i) == '.') {}
else
s1= s1 +a.charAt(i);
}
return s1;
regards
mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use replace function in text funtiions......give the input as first parameter,second parameter "." and third parameter ""(nothing just two double quotes).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.