bug-gnucobol
[Top][All Lists]
Advanced

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

[open-cobol-list] Bug report and a patch: editing field get minus sign w


From: Roger While
Subject: [open-cobol-list] Bug report and a patch: editing field get minus sign when value is zero
Date: Tue, 16 Jun 2009 08:22:36 +0200



There is a bug (feature ?) in open-cobol-1.1 (2009-02-06).

When sending a small negative value to signed edited field the result
is -0. e.g sending -0.01 to -(3)9 gives -0.

Example program is listed after the patch that fixes the bug.

Looks correct to me.
Strange that the NIST (ANSI85) tests do not appear to
test for this.
Slightly modified version will be in the next tarball along
with OC tests for this.

Roger


reply via email to

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