Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cygx
· 2y ago · 0 comments
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.
Comments
[–]
TheRealKing
2y ago
And first of all, Fortran.