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

multiplyMod

abstract fun multiplyMod(value: T, modulus: UInt64!): T (source)

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

Parameters

value - T: The amount to multiply this value by.

modulus - UInt64!: The modulus.

Exceptions

ArithmeticException - value < 0 or modulus == 0.

Return
T: (this * value) mod modulus

abstract fun multiplyMod(value: Long, modulus: UInt64!): T (source)

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

Parameters

value - Long: The amount to multiply this value by.

modulus - UInt64!: The modulus.

Exceptions

ArithmeticException - value < 0 or modulus == 0.

Return
T: (this * value) mod modulus

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

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

Parameters

value - Long: The amount to multiply this value by.

modulus - Long: The modulus.

Exceptions

ArithmeticException - value < 0 or modulus ≤ 0.

Return
T: (this * value) mod modulus