Ticket #12198: add_test.cpp
| File add_test.cpp, 407 bytes (added by , 6 years ago) |
|---|
| Line | |
|---|---|
| 1 | #include <iostream> |
| 2 | #include <boost/multiprecision/cpp_bin_float.hpp> |
| 3 | |
| 4 | |
| 5 | typedef boost::multiprecision::number<boost::multiprecision::backends::cpp_bin_float<128, boost::multiprecision::backends::digit_base_2> > ext_float_t; |
| 6 | |
| 7 | int main(int, char**) { |
| 8 | ext_float_t a("7.7e+646456915"); |
| 9 | ext_float_t b("2.2e-78"); |
| 10 | std::cout |
| 11 | << a << " + " << b << " = " << a + b << "\n" |
| 12 | ; |
| 13 | |
| 14 | return 0; |
| 15 | } |
