Module 0x1::u256
Function max
Return the larger of x
and y
Function min
Return the smaller of x
and y
Function diff
Return the absolute value of x - y
Function divide_and_round_up
Calculate x / y, but round up the result.
public fun divide_and_round_up(x: u256, y: u256): u256
Implementation
public fun divide_and_round_up(x: u256, y: u256): u256 {
std::macros::num_divide_and_round_up!(x, y)
}
Function pow
Return the value of a base raised to a power