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

subtractExact

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

Returns a value that is (this - value).

Parameters

value - the amount to be subtracted to this value

Exceptions

ArithmeticException - if the result of the addition overflows

Return
this - value