tuweni / org.apache.tuweni.units.bigints / UInt256Value / subtractExact

subtractExact

open fun subtractExact(value: T): T (source)

Returns a value that is (this - value).

Parameters

value - T: the amount to be subtracted to this value

Exceptions

ArithmeticException - if the result of the addition overflows

Return
T: this - value

open fun subtractExact(value: Long): T (source)

Returns a value that is (this - value).

Parameters

value - Long: the amount to be subtracted to this value

Exceptions

ArithmeticException - if the result of the addition overflows

Return
T: this - value