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

mod

abstract fun mod(modulus: UInt32!): T (source)

Returns a value that is (this mod modulus).

Parameters

modulus - UInt32!: The modulus.

Exceptions

ArithmeticException - modulus == 0.

Return
T: this mod modulus.

abstract fun mod(modulus: Int): T (source)

Returns a value that is (this mod modulus).

Parameters

modulus - Int: The modulus.

Exceptions

ArithmeticException - modulus ≤ 0.

Return
T: this mod modulus.