Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
cygx
2y ago
0 comments
Save
Share
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.
0 comments
1 comments · 1 top-level
top
newest
oldest
TheRealKing
2y ago
And first of all, Fortran.
j
/
k
navigate · click thread line to collapse