xte::big_int<T>::abs()

Defined in header <xte/math/big_int.hpp>


Definition

[[nodiscard]] constexpr auto abs(this auto&&) XTE_ARROW(/* ... */)
Computes the absolute value of the big-integer.



Example

static_assert(xte::big_int(-123).abs() == 123);
[View in Compiler Explorer]