0

I'm trying to perform a modulo operation on two numbers. One is a cpp_dec_float_50 type (decimal) number, and the other is a int1024_t type number - both supplied by the Boost Multiprecision C++ library.

I've tried using the % operator, and the Standard Library's fmod() function, but alas they aren't designed for such data types. I've scoured the Boost documentation however there is no trace of a modulous alternative that would work with its own floating point data types.

Please note that the int1024_t value is very large.

There must be SOME way to perform a modulo operation on such values, hopefully someone can shed some light on it for me.

Cheers.

Zaxter5
  • 57
  • 1
  • 2
  • 9

0 Answers0