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

multiplyMod

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

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

Parameters

value - UInt32!: The amount to multiply this value by.

modulus - UInt32!: The modulus.

Exceptions

ArithmeticException - value < 0 or modulus == 0.

Return
T: (this * value) mod modulus