Re: [R] Integer division

2022-12-20 Thread Richard O'Keefe
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

Re: [R] Integer division

2022-12-20 Thread avi.e.gross
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