Hacker News new | ask | show | jobs
by cygx 845 days ago
A common approach (e.g. Cobol, Ada, Common Lisp, Haskell, Clojure, MATLAB, Julia, Kotlin) seems to be to provide two operators: One that uses truncated division, one that uses floored division. By convention, rem truncates, and mod floors.
1 comments

And first of all, Fortran.