bug-gnucobol
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] possibly bug: accept into numeric field


From: masterok
Subject: Re: [open-cobol-list] possibly bug: accept into numeric field
Date: Tue Nov 11 01:29:03 2003
User-agent: Opera7.21/Win32 M2 build 3218


  Data item          Input
  ---------          -----
  01 X-1 PIC 99.     "123"
  01 X-2 PIC 99V9.   "1"
  01 X-3 PIC 99V9.   "123.4"

In my opinion,
X-1, should give error if input is "123" (alphanumeric to numeric). If input is 123 (numeric) X-1 would result 23 (looses leading 1).
X-2, for numeric, would result 01.0 (01,0 decimal-point is comma)
X-3, for numeric, would result 23.4 (23,4).
Regards,
Marcello Marsile



reply via email to

[Prev in Thread] Current Thread [Next in Thread]