opensourcecobol / opensourcecobol4j

A new version of opensourcecobol. Translate COBOL to Java.
https://opensourcecobol.github.io/opensourcecobol4j/
GNU General Public License v3.0
74 stars 34 forks source link

Fix add statements and subtract statements #546

Closed yutaro-sakamoto closed 6 days ago

yutaro-sakamoto commented 6 days ago

This pull request modifies the CobolNumericField to fix subtract statements against PIC 9 variables. The most important changes include the addition of a method to check for positive or negative zero, an adjustment in the subtraction logic, and the inclusion of new test cases.

Enhancements to CobolNumericField class:

Additions to test cases: