j
k
j a
j l
Any suggestion how to convert a mp int (e.g., int128_t) to a float type (e.g., double)?
The C++03 way is: cpp_int i = 1; i <<= 128; double d = i.convert_to<double>(); In C++11 you can just use a static_cast (explicit convertion operator). HTH, John.
Back to the thread
Back to the list