‎2006 Aug 04 4:25 PM
Hi all,
I have a field ATFLV of type FLTP length 16 and decimals 16. This field has a value 1.000000000000000E+03. I want to multiply this value with 0.022 and take that value into another field let us say ATFLV1 of same type as ATFLV.
And also, I want the value in ATFLV1 to be taken into another field ATWRT of type Character and length 30.
PLease help. Waiting for replies. Thanks
‎2006 Aug 04 4:32 PM
‎2006 Aug 04 4:27 PM
‎2006 Aug 04 4:32 PM
‎2006 Aug 04 4:30 PM
Hi,
atflv1 = atvlv * 0.022
move atflv1 to atwrt.
regards,
keerthi.
‎2006 Aug 04 4:32 PM
‎2006 Aug 04 4:40 PM
Rich,
It prints the value in atwrt as 22.000. I want the value in atwrt with out decimals. So it should be only '22'. how can I do this. Waiting..........
‎2006 Aug 04 4:43 PM
‎2006 Aug 04 4:45 PM
‎2006 Aug 04 4:50 PM
Rich,
In your code what I am doing is:
data: ATFLV type cawn-ATFLV value '1.000000000000000E+03',
atflv1 type cawn-atflv,
atwrt type cawn-atwrt.
atflv1 = atflv * '.022'.
Now the value in atflv1 is '2.200000000000000E+01',
Now I want this value in the field ATWRT as '22'.
Please help.
‎2006 Aug 04 4:54 PM