decimal to Cobol Numeric
Strange results occurring with the attached piece of code. The CalcPerecntDotNet method is returning mixed results when you divide 100 by the following numbers 13 thru 15, 17 thru 19, 21 thru 24. FYI, I stopped testing at 100. The CalcPercentCobol method seems to work correctly. Also it should be noted that the piece of code that is causing the problem is when I try to move the Decimal field to the Pic 9(03)v99 field using the set command.
Below I provided the values 13 thru 24
RE: decimal to Cobol Numeric
Please create a support incident for this problem and reference my name in the description so that it is assigned to me.
I will create an rpi for this behavior so that we can get it fixed.
I can reproduce the problem using the following:
01 mydecimal decimal value 13.
01 result decimal.
01 mynumber pic 9(3)v99.
set result to 100 / mydecimal
set mynumber to result