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

◆ abs() [6/8]

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

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

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