Talk:Integer long division

From Rosetta Code
Revision as of 19:31, 15 September 2021 by rosettacode>Gerard Schildberger (Split long sentences.)

task wording clarification

It should be noted that most of the task's preamble is actually referring to integers   (not numbers)   expressed in base ten,   but particularly,   the 4th paragraph.   Also, nothing was mentioned or inferred about signed integers (allowed or not?, or just ignored?).

In the "note"   (2nd sentence, 4th paragraph),   I was rather uncertain in this period of time as to the meaning of the word   period     (... will always produce a period.

Did you mean in the context of a period   (a group of repeated decimal digits),   or a   decimal point,   (also known as)   a period.

Furthermore,   most of the 4th paragraph isn't true because   ... the division of any two numbers ...     is incorrect,   it probably should say   ... the division of any two integers ....

Numbers   could produce vulgar (or improper) (decimal) fractions.     -- Gerard Schildberger (talk) 19:28, 15 September 2021 (UTC)

Also, not all computer programming languages produce a decimal point when doing (perfect/complete) division of two integers.

8   divided by   4   is   2   (no decimal point)   when performed by a REXX program.   There can be similar results in other computer programming languages that make use of "picture" (PIC) specifications (and other such animals)   such as in the COBOL and PL/I languages.     -- Gerard Schildberger (talk) 19:28, 15 September 2021 (UTC)


Finally, there is/are the case(s) of     / 7     where the period is zero.     -- Gerard Schildberger (talk) 19:28, 15 September 2021 (UTC)