Four is magic: Difference between revisions
Content added Content deleted
Line 2,209: | Line 2,209: | ||
# if we found one, split on it and construct quotient 'name' remainder |
# if we found one, split on it and construct quotient 'name' remainder |
||
# since both quotient and remainder require recursion, we can't use |
|||
# tail-recursion for both. |
|||
if (( n >= p )); then |
if (( n >= p )); then |
||
local -i quotient=n/p |
local -i quotient=n/p |