Skip to Content
0
Former Member
Sep 22, 2008 at 07:59 AM

A problem of type p in module pool

18 Views

Hi,

In a module pool, using type p will make a mistake.

For example:

PROGRAM ZTEST01.

data: num type p decimals 2.

&----


*& Module STATUS_9000 OUTPUT

&----


  • text

----


module STATUS_9000 output.

num = 4.

endmodule. " STATUS_9000 OUTPUT

The num will be 0.04, not 4.

Why this occurs?

When I do the same thing in a executable programme, the num will be 4. That's to say, the mistake will not occure in a executable programme.

Waiting for your help.

Best Regards,

Xifeng