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

divideCeil

abstract fun divideCeil(value: T): T (source)

Returns a value that is ceiling(this / value).

Parameters

value - T: The amount to divide this value by.

Exceptions

ArithmeticException - value == 0.

Return
T: this / value + ( this % value == 0 ? 0 : 1)

abstract fun divideCeil(value: Long): T (source)

Returns a value that is ceiling(this / value).

Parameters

value - Long: The amount to divide this value by.

Exceptions

ArithmeticException - value == 0.

Return
T: this / value + ( this % value == 0 ? 0 : 1)