We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 344d6d3 commit e1975abCopy full SHA for e1975ab
test/github_issue_1105.cpp
@@ -36,6 +36,13 @@ void test()
36
BOOST_TEST_EQ(prev_exp, val_exp - 1);
37
BOOST_TEST_EQ(prev_sig, detail::max_significand_v<T>);
38
39
+ // Max significand + 1 should be reduced
40
+ const auto original_val {nextafter(prev, one)};
41
+ int original_exp {};
42
+ const auto original_sig {frexp10(original_val, &original_exp)};
43
+ BOOST_TEST_EQ(original_exp, val_exp);
44
+ BOOST_TEST_EQ(original_sig, val_sig);
45
+
46
const auto zero_next {nextafter(zero, one)};
47
BOOST_TEST_EQ(zero_next, std::numeric_limits<T>::denorm_min());
48
0 commit comments