Ticket #13347: main.cpp
| File main.cpp, 326 bytes (added by , 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | #include <boost/multiprecision/cpp_dec_float.hpp> |
| 2 | #include <iostream> |
| 3 | |
| 4 | int main() |
| 5 | { |
| 6 | using boost::multiprecision::cpp_dec_float_50; |
| 7 | cpp_dec_float_50 left("4.666662"), right("0.666666"); |
| 8 | cpp_dec_float_50 div_res = left/right, correct_div_res("7"); |
| 9 | std::cout << std::boolalpha << (div_res == correct_div_res) << std::endl; |
| 10 | } |
