Kbase P61434: Why DISPLAY and MESSAGES shows different values for DECIMAL
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  06/01/2004 |
|
Status: Unverified
GOAL:
Why DISPLAY and MESSAGES shows different values for DECIMAL variables/fields?
FIX:
Having the following 4GL code:
DEF VAR vd AS DECIMAL FORMAT ">>>.99".
ASSIGN vd = 336.30.
DISPLAY vd. /* shows 336.30 */
MESSAGE vd VIEW-AS ALERT-BOX. /* shows 336 */
DISPLAY statement uses variable's FORMAT to show the value.
MESSAGE just takes the decimal value and trims non-relevant decimals.
This is expected behavior.