MOVE - Numeric Field to Integer Examples


Example 1:

 

  

MOVE

FORM TO INT

 

 

Variable

PL

Contents

Before:

FORM

2

25

 

INT

1

0x0

 

After:

FORM

2

25

 

INT

1

0x19

 

No Condition Flag is set (all FALSE).

 

Example 2:

 

 

Variable

PL

Contents

Before:

FORM

3

257

 

INT

1

0x0

 

After:

FORM

3

257

 

INT

1

0x01

 

The OVER Condition Flag is set. The hex equivalent of FORM (0x0101) was too large to fit in INT and significant data was lost.

 

 



PL/B Language Reference MOVE - Numeric Field to Character String Examples MOVE - Numeric Field to Numeric Field Examples