What's the difference between checked_div and checked_div_euclid?

I can't find a difference between the two, and searches aren't providing much help. These two are in the standard library, and AFAIK, do the same thing.

It is only different for negative integers, but is included on the unsigned integer types for consistency. Read more here and see this playground.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.