Function librapid::mod(const mpfr&, const mpfr&)#

Function Documentation#

mpfr librapid::mod(const mpfr &val, const mpfr &mod)#

Floating point modulus of a multiprecision floating point value: \( x \bmod y \)

Parameters
  • val – The value to take the modulus of

  • mod – The modulus to take the value by

Returns

The modulus of the value