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

mod

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

Returns a value that is (this mod modulus).

Parameters

modulus - UInt384!: 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.