Rules and considerations for arithmetic operations

Last Updated : Sep 08, 2012 |
Prolog information
The following rules and considerations apply to all types of arithmetic operations.
Results
Operand1
Operand2
Field length
6
6
10
Entries allowed
[A-Z, AA-ZZ]
digits
[A-Z, AA-ZZ] V1-V9
digits
none
[A-Z, AA-ZZ]
V1-V9
digits
none
numeric values 0-9999999999
Variable or digits buffer contents
  • #, 0-4295967295
  • Leading zeros ignored (007 = 7)
  • none, #, 0-9999999999999999
  • Leading zeros allowed (007 = 007)
Variable or digits buffer evaluation
  • Valid numeric results are 0-4295967295
  • Greater than 4295967295 = #
  • Less than 0 = #
  • Leading zeros ignored (007 = 7)
  • none = 0
  • # = #
  • Greater than 4295967295 = #
  • Leading zeros ignored (007 = 7)
Start and length parameters
  • Results greater than the length definition = #.
  • Digits buffer length definition is always 16.
  • The start definition is ignored.
N/A
N/A