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