Update docs, rename remaining occurrences of mp_float.

[SVN r75487]
This commit is contained in:
John Maddock
2011-11-14 12:41:15 +00:00
parent b85306e076
commit f5eb2f330b
11 changed files with 3847 additions and 12 deletions

View File

@@ -0,0 +1,28 @@
///////////////////////////////////////////////////////////////
// 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 <boost/multiprecision/cpp_float.hpp>
#include <iostream>
void t1()
{
//[cpp_float_eg
//=#include <boost/multiprecision/cpp_float.hpp>
using namespace boost::multiprecision;
// Operations at fixed precision and full numeric_limits support:
cpp_float_100 b = 2;
std::cout << std::numeric_limits<cpp_float_100>::digits << std::endl;
std::cout << log(b) << std::endl; // print log(2)
//]
}
int main()
{
t1();
return 0;
}