units / org.apache.tuweni.units.bigints / UInt32Value / multiplyMod

multiplyMod

abstract fun multiplyMod(value: T, modulus: UInt32): T (source)
abstract fun multiplyMod(value: Int, modulus: UInt32): T (source)

Returns a value that is ((this * value) mod modulus).

Parameters

value - The amount to multiply this value by.

modulus - The modulus.

Exceptions

ArithmeticException - value < 0 or modulus == 0.

Return
(this * value) mod modulus

abstract fun multiplyMod(value: Int, modulus: Int): T (source)

Returns a value that is ((this * value) mod modulus).

Parameters

value - The amount to multiply this value by.

modulus - The modulus.

Exceptions

ArithmeticException - value < 0 or modulus ≤ 0.

Return
(this * value) mod modulus