summaryrefslogtreecommitdiff
path: root/boost/math/policies/policy.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/math/policies/policy.hpp')
-rw-r--r--boost/math/policies/policy.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/boost/math/policies/policy.hpp b/boost/math/policies/policy.hpp
index 49068a6..71309fa 100644
--- a/boost/math/policies/policy.hpp
+++ b/boost/math/policies/policy.hpp
@@ -850,6 +850,11 @@ inline int digits(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE(T))
typedef mpl::bool_< std::numeric_limits<T>::is_specialized > tag_type;
return detail::digits_imp<T, Policy>(tag_type());
}
+template <class T, class Policy>
+inline int digits_base10(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE(T))
+{
+ return boost::math::policies::digits<T, Policy>() * 301 / 1000L;
+}
template <class Policy>
inline unsigned long get_max_series_iterations()