/////////////////////////////////////////////////////////////// // Copyright 2011 John Maddock. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_ #include #include void t1() { //[cpp_dec_float_eg //=#include using namespace boost::multiprecision; // Operations at fixed precision and full numeric_limits support: cpp_dec_float_100 b = 2; std::cout << std::numeric_limits::digits << std::endl; std::cout << log(b) << std::endl; // print log(2) //] } int main() { t1(); return 0; }