Aatch / ramp

RAMP - Rust Arithmetic in Multiple Precision
Apache License 2.0
263 stars 38 forks source link

Specify rounding method, derive Clone #88

Closed clarfonthey closed 7 years ago

clarfonthey commented 7 years ago
  1. round() doesn't specify what rounding method is used; this updates that.
  2. Implementation of Clone is just the default, so, I just converted it to a derived version.
Aatch commented 7 years ago

The clone_from isn't the same in the derived version. The derived version just uses the default method from the Clone trait which isn't as efficient as Int's clone_from.

clarfonthey commented 7 years ago

Oh, huh. I was under the impression that the derived version specialised on clone_from.

I'll remove that part.

clarfonthey commented 7 years ago

I'll just replace this with #89 in that case, then.