4 ms·
In the context of education, I agree, but you strech credulity with this: > Maybe there is no implementation for your platform. I challenge you to find me a s
by redblacktree 13y ago
In the context of education, I agree, but you strech credulity with this:
> Maybe there is no implementation for your platform.
I challenge you to find me a single example of a platform that does not already have an implementation for integer division. This functionality is basic.
Edit: Also, you seem to have strange expectations with respect to results of integer division. Many languages in common use will give the result above. If you want the remainder, you're expected to use modulus.
For example:
>>> '%s %s/%s' % (523 / 6, 523 % 6, 523)
'87 1/523'
>>>