Comments on: COBOL ‘Divide By Giving Remainder’ Code Not Working Correctly
http://itknowledgeexchange.techtarget.com/itanswers/cobol-divide-by-giving-remainder-code-not-working-correctly/
Fri, 26 May 2017 22:39:41 +0000hourly1By: remainder
http://itknowledgeexchange.techtarget.com/itanswers/cobol-divide-by-giving-remainder-code-not-working-correctly/#comment-74130
Tue, 23 Feb 2010 15:16:56 +0000#comment-74130I WANT TO GET REMAINDER WHEN I CALCULATE 5 / 2
HOW I GET REMAINDER

AND

HOW I GET QUOTIENT

]]>By: remainder
http://itknowledgeexchange.techtarget.com/itanswers/cobol-divide-by-giving-remainder-code-not-working-correctly/#comment-74129
Tue, 23 Feb 2010 15:14:29 +0000#comment-74129I WANT TO FIND THE REMAINDER VALUE IN COBOL CALCULATION
PLEASE SUGGEST
]]>By: pscjohnd
http://itknowledgeexchange.techtarget.com/itanswers/cobol-divide-by-giving-remainder-code-not-working-correctly/#comment-50230
Mon, 15 Nov 2004 15:19:58 +0000#comment-502301.75 divided by 1.5 giving 1 remainder .25 is correct because 1.5 + .25 = 1.75.

The remainder (.25) divided by 1.5 = .16 which is the fraction of 1.5 that you appear to want to evaluate.

Note that a remainder and a decimal fraction are not the same thing.