akubera / bigdecimal-rs

Arbitrary precision decimal crate for Rust
Other
276 stars 71 forks source link

Div(BigDecimal, BigDecimal) should yield BigRational #2

Open rubdos opened 7 years ago

rubdos commented 7 years ago

Dividing two BigDecimal's should yield a BigRational, per feature. Additionally, division by another integer numeral could be implemented to yield a BigRational.

kestred commented 7 years ago

I could see this being a desirable behavior for scientific use (although not what I in particular would expect or want), but if this was implemented, it'd be important for it to be ergonomic to turn a BigRational back into a BigDecimal.