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

◆ abs() [1/8]

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

Returns the absolute value of a decimal number.

Parameters
valueA number in the range std::numeric_limit<decimal>::lowest() <= value <= std::numeric_limit<decimal>::max().
Returns
A decimal number, x, such that 0 <= x <= std::numeric_limit<decimal>::max()std::numeric_limit<decimal>::max().