jk-jeon/dragonbox

Bug: to_decimal(0.0f) will cause core dump

Closed this issue · 1 comments

Bug: to_decimal(0.0f) will cause core dump

Thanks for reporting, but this is not a bug.

From Readme:

Importantjkj::dragonbox::to_decimal is designed to work only with finite nonzero inputs. The behavior of it when given with infinities/NaN's/+0/-0 is undefined. jkj::dragonbox::to_chars and jkj::dragonbox::to_chars_n work fine for any inputs.