Integer long division: Difference between revisions
m
add a related task
Thundergnat (talk | contribs) m (→{{header|Raku}}: add some more edge condition test cases) |
Thundergnat (talk | contribs) m (add a related task) |
||
Line 6:
The result could be stored as a string or simply output to the screen.<br>
Note that the division of any two integers will always produce a period, but if the numerator is an exact multiple of the denominator, or if the denominator contains only the factors 2 and 5, the period will be 0. In the remaining cases, these possible 2's and 5's of the denominator produce a leading number of digits in the quotient, but have no effect on the period. <br>
;References:
*[[wp:Long_division|Wikipedia: Long Division]]
;Related:
*[[Long primes]]
<br><br>
|