decimal_for_cpp icon indicating copy to clipboard operation
decimal_for_cpp copied to clipboard

Edge cases failing

Open HFTrader opened this issue 3 years ago • 0 comments

Hey congrats for this work! I am using decimal_for_cpp for checking the results of some other algorithm (fpga) when I came across to a few test cases that are failing when apparently they should not. I want to check if this is expected behavior. For example:

BOOST_CHECK_EQUAL( dec::decimal<0>::buildWithExponent(1,-23), dec::decimal<0>("0"));

This test should not fail but it is right now. This can be seen as an underflow, right?

HFTrader avatar Aug 10 '22 03:08 HFTrader