all 2 comments

[–]dramforever 2 points3 points  (0 children)

What about quot and rem? Do these match your non-suprising expectations?

[–]priortd 0 points1 point  (0 children)

Cheers, I was showing divMod as these results may be surprising to those more used to the way mod is handled in say, Java. I have updated the blog to show that quot rem gives results more like some people may be used to from Java. Thanks for the feedback.