mamrhein / fpdec.rs

Fast implementation of Decimal fixed-point arithmetics
BSD 3-Clause "New" or "Revised" License
17 stars 4 forks source link

'subtract with overflow ' panic in fn into_float::n_signif_bits #13

Closed mamrhein closed 9 months ago

mamrhein commented 10 months ago

Converting a Decimal with absolute value less than 1 and significant bits larger than the number of mantissa bits of the target type causes the function 'n_signif_bits' to be called with parameter 0, which leads to the 'subtract with overflow ' panic.

mamrhein commented 9 months ago

Fixed with version 0.10.2.