2006 Oct 17 9:26 AM
hi everybody
i have 2 values, x of type 9,5 decimals
and y 17, 3 decimals
i want to convert x to y, is there a special fm to do that?
anjali
2006 Oct 17 9:35 AM
hi,
Use move or assignment operator to convert x to y .
regards,
2006 Oct 17 9:28 AM
Just use MOVE and it should work. Surely, the decimals would be truncated as y has 3 places as compared to 5 for x.
2006 Oct 17 9:29 AM
hi Anjali,
Try with Move or assignement operator .. it works
Regards,
Santosh
2006 Oct 17 9:35 AM
hi,
Use move or assignment operator to convert x to y .
regards,
2006 Oct 17 9:37 AM
2006 Oct 17 9:58 AM
Sai Anjali,
If your problem is resolved please close the thread and it would be nice if you reward points to all helpful answers.
Myself and Santosh did say the same thing but unfortunately you did not like the answers to award points !!
Regards
Anurag
2006 Oct 17 9:38 AM
REPORT YCHATEST .
DATA : X(15) TYPE P DECIMALS 5 VALUE '12345.12345',
Y(16) TYPE P DECIMALS 3.
Y = X.
WRITE : Y.
But for type p maximum length is only 16