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

◆ abs() [7/8]

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

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

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