Bug: to_decimal(0.0f) will cause core dump
Closed this issue · 1 comments
Rose1917 commented
Bug: to_decimal(0.0f) will cause core dump
jk-jeon commented
Thanks for reporting, but this is not a bug.
From Readme:
Important.
jkj::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
andjkj::dragonbox::to_chars_n
work fine for any inputs.