Public Member Functions | |
template<> | |
float | Min_ (float val1, float val2) |
template<> | |
double | Min_ (double val1, double val2) |
template<> | |
float | Max_ (float val1, float val2) |
template<> | |
double | Max_ (double val1, double val2) |
Static Public Member Functions | |
static ASPOSECPP_SHARED_API double | Acos (double d) |
static ASPOSECPP_SHARED_API double | Asin (double d) |
static ASPOSECPP_SHARED_API double | Atan (double d) |
static ASPOSECPP_SHARED_API double | Atan2 (double y, double x) |
static ASPOSECPP_SHARED_API Decimal | Ceiling (const Decimal &d) |
static ASPOSECPP_SHARED_API double | Ceiling (double a) |
static ASPOSECPP_SHARED_API double | Cos (double d) |
static ASPOSECPP_SHARED_API double | Cosh (double value) |
static ASPOSECPP_SHARED_API Decimal | Floor (const Decimal &d) |
static ASPOSECPP_SHARED_API double | Floor (double d) |
static ASPOSECPP_SHARED_API double | Sin (double a) |
static ASPOSECPP_SHARED_API double | Tan (double a) |
static ASPOSECPP_SHARED_API double | Sinh (double value) |
static ASPOSECPP_SHARED_API double | Tanh (double value) |
static ASPOSECPP_SHARED_API double | Round (double a) |
static ASPOSECPP_SHARED_API double | Round (double value, int digits) |
static ASPOSECPP_SHARED_API double | Round (double value, MidpointRounding mode) |
static ASPOSECPP_SHARED_API double | Round (double value, int digits, MidpointRounding mode) |
static ASPOSECPP_SHARED_API Decimal | Round (const Decimal &d) |
static ASPOSECPP_SHARED_API Decimal | Round (const Decimal &value, int digits) |
static ASPOSECPP_SHARED_API Decimal | Round (const Decimal &d, MidpointRounding mode) |
static ASPOSECPP_SHARED_API Decimal | Round (const Decimal &d, int digits, MidpointRounding mode) |
static ASPOSECPP_SHARED_API Decimal | Truncate (const Decimal &d) |
static ASPOSECPP_SHARED_API double | Truncate (double d) |
static ASPOSECPP_SHARED_API double | Sqrt (double d) |
static ASPOSECPP_SHARED_API double | Log (double d) |
static ASPOSECPP_SHARED_API double | Log10 (double d) |
static ASPOSECPP_SHARED_API double | Exp (double d) |
static ASPOSECPP_SHARED_API double | Pow (double x, double y) |
static ASPOSECPP_SHARED_API double | IEEERemainder (double x, double y) |
template<class T > | |
static T | Abs (T value) |
static Decimal | Abs (const Decimal &d) |
static ASPOSECPP_SHARED_API double | Log (double a, double newBase) |
template<typename T > | |
static std::enable_if< std::is_integral< T >::value &&!std::is_unsigned< T >::value, int >::type | Sign (T value) |
template<typename T > | |
static std::enable_if< std::is_floating_point< T >::value, int >::type | Sign (T value) |
static int | Sign (const Decimal &value) |
static ASPOSECPP_SHARED_API int64_t | BigMul (int a, int b) |
static ASPOSECPP_SHARED_API int | DivRem (int a, int b, int &result) |
static ASPOSECPP_SHARED_API int64_t | DivRem (int64_t a, int64_t b, int64_t &result) |
template<class T > | |
static T | Modulus (T x, T y) |
template<class T0 , class T1 , class = typename std::enable_if<!std::is_same<T0, T1>::value, void>::type> | |
static auto | Min (T0 val1, T1 val2) -> decltype(val1+val2) |
template<class T0 , class T1 , class = typename std::enable_if<std::is_same<T0, T1>::value, void>::type> | |
static T0 | Min (T0 val1, T1 val2) |
template<class T0 , class T1 , class = typename std::enable_if<!std::is_same<T0, T1>::value, void>::type> | |
static auto | Max (T0 val1, T1 val2) -> decltype(val1+val2) |
template<class T0 , class T1 , class = typename std::enable_if<std::is_same<T0, T1>::value, void>::type> | |
static T0 | Max (T0 val1, T1 val2) |
Static Public Attributes | |
static const double ASPOSECPP_SHARED_API | PI |
The number Pi constant. More... | |
static const double ASPOSECPP_SHARED_API | E |
Natural logarithm's base. More... | |
static const double ASPOSECPP_SHARED_API | PositiveInfinity |
Represents the positive infinity. More... | |
static const double ASPOSECPP_SHARED_API | NegativeInfinity |
Represents the negative infinity. More... | |
static const double ASPOSECPP_SHARED_API | NaN |
Represents a not-a-number value. More... | |
Contains math functions. This is a static type with no instance services. You should never create instances of it by any means.
|
inlinestatic |
Returns the absolute value of the specified value
value | A value of arithmetic type |
value
T | The type of the value accepted by the method as an argument |
|
static |
Calculates the arccosine of the specified value.
d | The value to calculate arccosine of |
d
|
static |
Calculates the arcsin of the specified value.
d | The value to calculate arcsin of |
d
|
static |
Calculates the arctan of the specified value.
d | The value to calculate arctan of |
d
|
static |
Calculates the arctan of the ration of the specified values.
y | The point's y coordinate |
x | The point's x coordinate |
|
static |
Returns the full product of two 32-bit integers.
a | The first multiplier |
b | The second multiplier |
a
and b
Returns the smallest integral value that is greater than or equal to the specified value.
d | A decimal number |
d
|
static |
Returns the smallest integral value that is greater than or equal to the specified value.
a | A double-precision floating point number |
d
|
static |
Calculates the cosine of the specified value.
d | The value to calculate the cosine of |
d
|
static |
Calculates the hyperbolic cosine of the specified value.
value | The value to calculate the hyperbolic cosine of |
value
|
static |
Calculates the quotient of two 32-bit integers and the remainder.
a | The dividend |
b | The divisor |
result | The output parameter that contains the remainder resulting from division of a by b |
a
and b
|
static |
Calculates the quotient of two 64-bit integers and the remainder.
a | The dividend |
b | The divisor |
result | The output parameter that contains the remainder resulting from division of a by b |
a
and b
|
static |
Returns e constant raised to the specified power.
d | The power to raise e constant to |
d
Returns the largest integral value that is less than or equal to the specified value.
d | A decimal number |
d
|
static |
Returns the largest integral value that is less than or equal to the specified value.
d | A double-precision floating point number |
d
|
static |
Returns the remainder resulting from the division of a specified number by another specified number.
x | Dividend |
y | Divisor |
|
static |
Returns the natural logarithm of the specified value.
d | A double-precision floating point value |
d
|
static |
Returns the logarithm of the specified value in the specified base.
a | A double-precision floating point value |
newBase | The base of the logarithm |
a
in the newBase
base
|
static |
Returns the base-10 logarithm of the specified value.
d | A double-precision floating point value |
d
|
inlinestatic |
Returns the greatest value out of two numeric ones specified.
T0 | Type of first value. |
T1 | Type of second value. |
val1 | First value. |
val2 | Second value. |
val1
and val2
.
|
inlinestatic |
Returns the greatest value out of two numeric ones specified.
T0 | Type of first value. |
T1 | Type of second value. |
val1 | First value. |
val2 | Second value. |
val1
and val2
.
|
inline |
Returns the largest single-precision floating point value out of the two specified.
val1 | The first comparand |
val2 | The second comparand |
val1
and val2
; or NaN if one of the operands is NaN
|
inline |
Returns the largest double-precision floating point value out of the two specified.
val1 | The first comparand |
val2 | The second comparand |
val1
and val2
; or NaN if one of the operands is NaN
|
inlinestatic |
Returns the smallest value out of two numeric ones specified.
T0 | Type of first value. |
T1 | Type of second value. |
val1 | First value. |
val2 | Second value. |
val1
and val2
.
|
inlinestatic |
Returns the smallest value out of two numeric ones specified.
T0 | Type of first value. |
T1 | Type of second value. |
val1 | First value. |
val2 | Second value. |
val1
and val2
.
|
inline |
Returns the smallest single-precision floating point value out of the two specified.
val1 | The first comparand |
val2 | The second comparand |
val1
and val2
; or NaN if one of the operands is NaN
|
inline |
Returns the smallest double-precision floating point value out of the two specified.
val1 | The first comparand |
val2 | The second comparand |
val1
and val2
; or NaN if one of the operands is NaN
|
inlinestatic |
Calculates the remainder resulting from the division one specified value by another specified value.
x | The dividend |
y | The divisor |
x
by y
T | The type of the method's arguments |
|
static |
Returns the specified value raised to the specified power.
x | The value to raise to the specified power |
y | The power to raise the specified value to |
x
raised to the power of y
|
static |
Rounds the specified value to the nearest integral value.
a | The value to round |
a
rounded to the nearest integral value
|
static |
Rounds the specified value to the nearest value with the specified number of fractional digits.
value | The value to round |
digits | The number of fractional digits in the rounded value |
value
|
static |
Rounds the specified value to the nearest integral number. A parameter specifies the function's behavior if the specified value is equally close to two nearest numbers.
value | The value to round |
mode | Specifies how to perform the rounding if value is equally close to two nearest numbers. |
value
rounded to the nearest integral value
|
static |
Rounds the specified value to the nearest value with the specified number of fractional digits. A parameter specifies the function's behavior if the specified value is equally close to two nearest numbers.
value | The value to round |
digits | The number of fractional digits in the rounded value |
mode | Specifies how to perform the rounding if value is equally close to two nearest numbers. |
value
Rounds the specified value to the nearest integral value.
d | The value to round |
d
rounded to the nearest integral value
|
static |
Rounds the specified value to the nearest value with the specified number of fractional digits.
value | The value to round |
digits | The number of fractional digits in the rounded value |
value
|
static |
Rounds the specified value to the nearest integral number. A parameter specifies the function's behavior if the specified value is equally close to two nearest numbers.
d | The value to round |
mode | Specifies how to perform the rounding if value is equally close to two nearest numbers. |
d
rounded to the nearest integral value
|
static |
Rounds the specified value to the nearest value with the specified number of fractional digits. A parameter specifies the function's behavior if the specified value is equally close to two nearest numbers.
d | The value to round |
digits | The number of fractional digits in the rounded value |
mode | Specifies how to perform the rounding if value is equally close to two nearest numbers. |
value
|
inlinestatic |
Determines the sign of the specified signed integral value.
value | The value to determine the sign of |
value
is less than 0; 0 if value
is equal to 0; 1 if value
is greater than 0 T | The integral signed type |
|
inlinestatic |
Determines the sign of the specified floating-point value.
value | The value to determine the sign of |
value
is less than 0; 0 if value
is equal to 0; 1 if value
is greater than 0 T | The floating point type of the argument |
|
inlinestatic |
Determines the sign of the specified decimal value.
value | The value to determine the sign of |
value
is less than 0; 0 if value
is equal to 0; 1 if value
is greater than 0
|
static |
Calculates the sine of the specified value.
a | The value to calculate the sine of |
a
|
static |
Calculates the hyperbolic sine of the specified value.
value | The value to calculate the hyperbolic sine of |
value
|
static |
Returns the square root of the specified value.
d | A double-precision floating point value |
d
|
static |
Calculates the tangen of the specified value.
a | The value to calculate the tangen of |
a
|
static |
Calculates the hyperbolic tangen of the specified value.
value | The value to calculate the hyperbolic tangen of |
value
Returns the Decimal object representing a value that has integral part equal to that of the value represented by the specified Decimal object of the with all fractional digits discarded.
d | A decimal number |
|
static |
Returns a double-precision floating point value that has integral part equal to that of the specified value with all fractional digits discarded.
d | A decimal number |
|
static |
Natural logarithm's base.
|
static |
Represents a not-a-number value.
|
static |
Represents the negative infinity.
|
static |
The number Pi constant.
|
static |
Represents the positive infinity.