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

◆ abs() [4/8]

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

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

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