mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
Fix expected value's type for MSVC
This commit is contained in:
@@ -22,7 +22,7 @@ int main()
|
|||||||
const auto binom_dist = boost::math::binomial_distribution<double>(n, p);
|
const auto binom_dist = boost::math::binomial_distribution<double>(n, p);
|
||||||
const auto pdf1 = boost::math::pdf(binom_dist, 3);
|
const auto pdf1 = boost::math::pdf(binom_dist, 3);
|
||||||
|
|
||||||
CHECK_ULP_CLOSE(pdf1, 0, 1);
|
CHECK_ULP_CLOSE(pdf1, 0.0, 1);
|
||||||
|
|
||||||
if (std::fetestexcept(FE_DIVBYZERO))
|
if (std::fetestexcept(FE_DIVBYZERO))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user