MOVE - Integer to Numeric Field


 

This MOVE instruction converts the contents of the source integer variable to decimal numeric format and moves the result into the destination numeric variable. The instruction uses the following format:

 

 

[label]

MOVE

{source}{sep}{dest}

 

Where:

label

Optional. A Program Execution Label.

source

Required. An INTEGER variable that serves as the source operand.

sep

Required. A comma or one of the following prepositions: BY, TO, OF, FROM, USING, WITH, IN, or INTO.

dest

Required. A Numeric Variable that serves as the destination operand.

Flags Affected: OVER, ZERO

Note the following:

  1. The {source} is converted into decimal numeric format and then a MOVE - Numeric to Numeric is performed. All arithmetic rules concerning truncation apply.

  2. If {source} has been defined but not initialized, it has a value of zero.

 

 

See Also: Example Code, MOVE

 



PL/B Language Reference MOVE - Integer to Character String MOVE - Integer to Integer