Kbase P6769: ** Value too large for integer. (78) -- 32-bit Progress
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  17/03/2003 |
|
Status: Unverified
FACT(s) (Environment):
Progress 6.x
FACT(s) (Environment):
Progress 7.x
FACT(s) (Environment):
Progress 8.x
FACT(s) (Environment):
Progress 9.x
SYMPTOM(s):
32-bit Progress
** Value too large for integer. (78)
CAUSE:
Integer values must be between -2,147,483,648 and 2,147,483,647.
This is not a limit imposed by Progress, but a 32-bit limitation.
The leftmost bit is called the Most Significant Bit because it determines whether the number is positive or negative.
Therefore the range of numbers that can be represented with 32-bits in binary is between the smallest:
11111111111111111111111111111111
Which is equavent of the negative decimal integer:
-2,147,483,648
And the largest positive integer that can be represented by 32-bits in binary is:
01111111111111111111111111111111
which is the same as the positive integer:
2,147,483,647
FIX:
If the value entered or calculated is not erroneous, you may want to use a decimal value instead. The range of values allowed in decimal data is much larger.