mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-02-11 11:52:24 +00:00
Search and replace - rename mp_float cpp_float.
[SVN r75453]
This commit is contained in:
@@ -3,19 +3,19 @@
|
||||
// Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_
|
||||
|
||||
#include <boost/multiprecision/mp_float.hpp>
|
||||
#include <boost/multiprecision/cpp_float.hpp>
|
||||
#include <iostream>
|
||||
|
||||
void t1()
|
||||
{
|
||||
//[mp_float_eg
|
||||
//=#include <boost/multiprecision/mp_float.hpp>
|
||||
//[cpp_float_eg
|
||||
//=#include <boost/multiprecision/cpp_float.hpp>
|
||||
|
||||
using namespace boost::multiprecision;
|
||||
|
||||
// Operations at fixed precision and full numeric_limits support:
|
||||
mp_float_100 b = 2;
|
||||
std::cout << std::numeric_limits<mp_float_100>::digits << std::endl;
|
||||
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)
|
||||
//]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user