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 251d0a3 commit 07ec53aCopy full SHA for 07ec53a
test/github_issue_1105.cpp
@@ -35,6 +35,12 @@ void test()
35
const auto prev_sig {frexp10(prev, &prev_exp)};
36
BOOST_TEST_EQ(prev_exp, val_exp - 1);
37
BOOST_TEST_EQ(prev_sig, detail::max_significand_v<T>);
38
+
39
+ const auto zero_next {nextafter(zero, one)};
40
+ BOOST_TEST_EQ(zero_next, std::numeric_limits<T>::denorm_min());
41
42
+ const auto two_next_zero {nextafter(zero_next, one)};
43
+ BOOST_TEST_EQ(two_next_zero, T(2, detail::etiny_v<T>));
44
}
45
46
int main()
0 commit comments