‎2007 Sep 23 5:29 AM
Hi all,
I want to remove zeros from right side.
like : if value is '0.055500000000E+04'.
then the output should be '0.0555'.
How can i get such output.
Plz help me....
‎2007 Sep 23 6:07 AM
Hi,
I am not experienced in your requirement; if you just want to remove zero, then adding the floating point to the char field, then use SHIFT key word.
If you want the correct result then move the floating point to the packed decimals field .
‎2007 Sep 23 6:07 AM
Hi,
I am not experienced in your requirement; if you just want to remove zero, then adding the floating point to the char field, then use SHIFT key word.
If you want the correct result then move the floating point to the packed decimals field .
‎2007 Sep 23 6:19 AM
Hi,
the problem here is u are dealing with a datatype of format F (i.e floating point ) and the output u desire is in packed format .
You cannot delete the zeros of such data typesas type F instead u can move them to the packed datatype and get the result.
do one thing declare a variable of type p and move the value of type f which u have right now to the variable u have declared as type p.
data : v_val type p decimals 4.
v_val = " <------ assign the type f to type p over here .
hope this helps .
regards,
vijay.