Lack of consensus:
I should mention Python's // operator, which does
flooring division.
I should mention Common Lisp, where (floor - -),
(ceiling - -), (round - -), and (truncate - -)
all return a quotient and appropriate remainder.
I should mention Smalltalk, where // and \\ are
floo
Documentation specifics aside, and I am not convinced that is an issue here,
there is a responsibility on programmers on how to use routines like this by
testing small samples and seeing if the results match expectations.
Since negative numbers were possible, that would have been part of such te
2 matches
Mail list logo