How can I convert a text to number

Question: Hello,

I need your help.

I want to convert the next text '001.132000000000' to number type P.

Somebody can help me.

Thanks

Lalo

Answer:
REPORT ZSD_THUR08 .
DATA n1(20).
DATA n2 type P decimals 10.
n1 = '001.132000000'.
write n1.
n2 = n1.
write n2.

Answer:
warning:
data n2 type p decimals N (0<=N<=14)
Copyright ?2007 - 2008 www.jt77.com