MOVE - Integer to Numeric Field Examples


Example 1:

 

  

MOVE

INT TO FORM

 

 

Variable

PL

Contents

Before:

INT

1

0x63

 

FORM

2

•0

 

After:

INT

1

0x63

 

FORM

2

99

 

No Condition Flag is set (all FALSE).

 

Example 2:

 

 

Variable

PL

Contents

Before:

INT

1

0x64

 

FORM

2

15

 

After:

INT

1

0x64

 

FORM

2

•0

 

The ZERO and OVER Condition Flags are set. INT equaled decimal 100 that was too large for NUM (significant data was lost) and resulted in 0.

 



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