Integer long division: Difference between revisions

Content added Content deleted
m (→‎{{header|Raku}}: add some more edge condition test cases)
m (add a related task)
Line 6: Line 6:
The result could be stored as a string or simply output to the screen.<br>
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>
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:
;References:
*[[wp:Long_division|Wikipedia: Long Division]]
*[[wp:Long_division|Wikipedia: Long Division]]


;Related:
*[[Long primes]]
<br><br>
<br><br>