I have an "extented double" data-type that stores the exponent in a seperate int variable to increase the range like this: I now need to convert a ...
I have an "extented double" data-type that stores the exponent in a seperate int variable to increase the range like this: I now need to convert a ...
Trying to use ios format flags to format the string representation of Boost multiprecision cpp_int. Everything works with gcc standard c++17, but in V ...
I'm trying to format a boost multiprecision cpp_int using fmt library. Here's the code I tried https://godbolt.org/z/M4zKc5hr6 using boost 1.73, f ...
I'm new using the boost::multiprecision library and tried to use it combination with boost::math::interpolators::cardinal_cubic_b_spline however I can ...
I'm testing boost::multiprecision:int128_t using VS 2022. The value int128_t (-1) is not equal to int128_t ("0XFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"), but ...
In my code I want to have a function which performs some calculations based on boost::multiprecision::cpp_dec_float_100 and returns string as a result ...
I want to multiply number 123456789.123456789 by 1000000000.0 and as a result of this operation I expect 123456789123456789 as int or float 1234567891 ...
I am trying to check if some compressed public key corresponds to an elliptic curve equation (secp256k1). As far as I know it should be valid once the ...
This simple code can't be compiled with the -std=c++20 option: The compilation command: The compiler complains about the BOOST_MP_QUAD_MAX const ...
how would I convert a boost::multiprecision::int256_t type variable into a string for example if i have ...
Similar question: to Boost.Multiprecision cpp_int - convert into an array of bytes? But this time related to floating point values. export_bits - ...
I am trying use boost::qvm with boost::multiprecision. I built a user-defined quaternion, but I am not able to scale the quaternion. I would like to s ...
I'm trying to get boost::multiprecision to parse a negative (two's complement) hex number: I expect this to output -1234. Unfortunately, it outputs ...
When I print a cpp_int from Boost, it seems that the entire object is copied. #include <iostream> #include <boost/multiprecision/cpp_int.hpp ...
Silly question but, does setting bits on a cpp_int from the boost library work the same as normal numbers? For instrance, I tried to set some bits on ...
The following code won't compile since boost::multiprecision::pow does not recognised fixed precision type. What is the usual solution for this? I' ...
I need to generate a large number of random multiprecision ints (boost mpx_int) of various bits. My current approach is based on these two examples: b ...
When using a fixed seed inside a rng, results are not reproducible when precision is varied. Namely, if one changes the template argument cpp_dec_floa ...
I have a simple rejection sampling application which is wrapped in a class and used externally as the dummy example below shows. I was able to adapt t ...
Some of my unit tests have started failing since adapting some code to enable multi-precision. Header file: Main test file: Note that when defin ...