Talk:Integer long division

From Rosetta Code
Revision as of 20:14, 15 September 2021 by Proton (talk | contribs) (→‎task wording clarification)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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?).

>> Yes, the title of the task is Integer long division. I did not consider signed integers, thanks for pointing it out. Simply consider positive unsigned integers.

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.

>> A language ambiguity. Here I mean a repeating sequence of digits.

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)

>> My bad. I meant to say integers, thanks for spotting it.


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)