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

mod

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

Returns a value that is (this mod modulus).

Parameters

modulus - UInt64!: The modulus.

Exceptions

ArithmeticException - modulus == 0.

Return
T: this mod modulus.

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

Returns a value that is (this mod modulus).

Parameters

modulus - Long: The modulus.

Exceptions

ArithmeticException - modulus ≤ 0.

Return
T: this mod modulus.