units / org.apache.tuweni.units.bigints / BaseUInt64Value / addMod

addMod

open fun addMod(value: T, modulus: UInt64): T (source)

Overrides UInt64Value.addMod


open fun addMod(value: Long, modulus: UInt64): T (source)

Overrides UInt64Value.addMod


open fun addMod(value: Long, modulus: Long): T (source)

Overrides UInt64Value.addMod

open fun addMod(value: UInt64, modulus: UInt64): T (source)

Returns a value equivalent to ((this + value) mod modulus).

Parameters

value - The amount to be added to this value.

modulus - The modulus.

Exceptions

ArithmeticException - modulus == 0.

Return
(this + value) mod modulus