2
0
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:
Matt Borland
2023-02-11 09:56:08 -08:00
parent 1e47518075
commit a26b1045de

View File

@@ -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))
{ {