The documentation of INTEGER.rem has a mistake. This mistake also appears the description of IntInf.quotRem. I noticed this mistake when I saw that the documentations for INTEGER.quot and INTEGER.rem conflicted with each other, with the former seeming to be accurate to actual implementations. Comparing the two should make it clear:
https://smlfamily.github.io/Basis/integer.html#SIG:INTEGER.quot:VAL
The documentation of
INTEGER.remhas a mistake. This mistake also appears the description ofIntInf.quotRem. I noticed this mistake when I saw that the documentations forINTEGER.quotandINTEGER.remconflicted with each other, with the former seeming to be accurate to actual implementations. Comparing the two should make it clear:https://smlfamily.github.io/Basis/integer.html#SIG:INTEGER.quot:VAL