Kbase P15960: Error 78 When Using the MODULO Operator
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/2/2005 |
|
Status: Unverified
SYMPTOM(s):
Error (78) when using the MODULO operator
** Value too large for integer. (78)
CAUSE:
This error appears because the expression used with the MODULO operator is higher than 2,147,483,647.
Integer values must be between -2,147,483,648 and 2,147,483,647.
FIX:
Hereafter is a sample code allowing to work around this limit:
DEFINE VARIABLE cExpression AS CHARACTER FORMAT "x(54)" NO-UNDO.
cExpression = "15623568456".
DISPLAY (DEC(cExpression)- TRUNC(DEC(cExpression) / 97,0) * 97).