xtd 0.2.0
Loading...
Searching...
No Matches

◆ abs() [5/8]

static int32 xtd::math::abs ( int32  value)
static

Returns the absolute value of a 32-bit signed integer.

Parameters
valueA number in the range std::numeric_limit<int32>::lowest() <= value <= std::numeric_limit<int32>::max().
Returns
A 32-bit signed integer, x, such that 0 <= x <= std::numeric_limit<int32>::max().
Exceptions
xtd::overflow_exceptionvalue equals std::numeric_limit<int32>::lowest().