mhogrefe / malachite

An arbitrary-precision arithmetic library for Rust.
GNU Lesser General Public License v3.0
448 stars 17 forks source link

Implement `CheckedDiv` trait to `Rational` #23

Closed segfault87 closed 1 year ago

segfault87 commented 1 year ago

Hi.

This PR adds CheckedDiv trait to Rationals in order to give interfaces to prevent division by zeroes.

I'd appreciate it if you could review this PR.

mhogrefe commented 1 year ago

Thanks! I appreciate the tests and documentation. This will be included in the next release.