MOVE - Character String to Numeric Field Examples
Example 1:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15.00 |
|
|
|
|
|
|
•••75.50 |
|
| |||||
|
|
|
|
|
|
15.00 |
|
|
|
|
|
|
•••15.00 |
No Condition Flag is set (all FALSE).
Example 2:
|
|
|
|
|
|
|
|
|
|
|
|
|
ABCDE75.00 |
|
|
|
|
|
|
••215.00 |
|
| |||||
|
|
|
|
|
|
ABCDE75.00 |
|
|
|
|
|
|
•••75.00 |
No Condition Flag is set (all FALSE).
Example 3:
|
|
|
|
|
|
|
|
|
|
|
|
|
500.257HIJ |
|
|
|
|
|
|
•••10.00 |
|
| |||||
|
|
|
|
|
|
500.257HIJ |
|
|
|
|
|
|
••500.26 |
No Condition Flag is set (all FALSE).
Example 4:
|
|
|
|
|
|
|
|
|
|
|
|
|
1500000.00 |
|
|
|
|
|
|
•••75.00 |
|
| |||||
|
|
|
|
|
|
1500000.00 |
|
|
|
|
|
|
•••••.00 |
The OVER and ZERO Condition Flags are set. Significant digits are lost and the result is equal to zero.
Example 5:
|
|
|
|
|
|
|
|
|
|
|
|
|
1500018.00 |
|
|
|
|
|
|
•••75.00 |
|
| |||||
|
|
|
|
|
|
1500000.00 |
|
|
|
|
|
|
•••18.00 |
The OVER Condition Flag is set. Significant digits are lost.
Example 6:
|
|
|
|
|
|
|
|
|
|
|
|
|
510.25GHIJ |
|
|
|
|
|
|
•••75.00 |
|
| |||||
|
|
|
|
|
|
510.25GHIJ |
|
|
|
|
|
|
•••75.00 |
The EOS Condition Flag is set because STRING is a Null String.
![]() |