dnsl48 / fraction

[Rust] Lossless fractions and decimals; drop-in float replacement
Apache License 2.0
83 stars 25 forks source link

feat: add from_fraction_with_precision #109

Closed javamonn closed 5 months ago

javamonn commented 5 months ago

Adds a from_fraction_with_precision method to GenericDecimal for cases when you know ahead of time the desired precision and want to sidestep the internal call to calc_precision.

dnsl48 commented 5 months ago

Thanks for the contribution! That'll make it to the next minor release.