Provides constants and static methods for trigonometric, logarithmic, and other common mathematical functions.
Public Fields | |
| static constexpr double | e |
| Represents the natural logarithmic base, specified by the constant, e. This field is constant. | |
| static constexpr double | pi |
| Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π. This field is constant. | |
| static constexpr double | tau |
| Represents the number of radians in one turn, specified by the constant, τ. | |
Public Deprecated Fields | |
| static constexpr auto | epsilon |
| Represents the smallest positive Double value greater than zero. This field is constant. | |
| static constexpr auto | infinity |
| Represents infinity. This field is constant. | |
| static constexpr auto | max_value |
| Represents the largest possible value of double. This field is constant. | |
| static constexpr auto | min_value |
| Represents the smallest possible value of double. This field is constant. | |
| static constexpr auto | NaN |
| Represents not a number (NaN). This field is constant. | |
| static constexpr auto | negative_infinity |
| Represents negative infinity. This field is constant. | |
| static constexpr auto | positive_infinity |
| Represents positive infinity. This field is constant. | |
Public Static Methods | |
| static auto | abs (xtd::decimal value) -> xtd::decimal |
| Returns the absolute value of a decimal number. | |
| static auto | abs (double value) -> double |
| Returns the absolute value of a double-precision floating-point number. | |
| static auto | abs (xtd::single value) -> xtd::single |
| Returns the absolute value of a single-precision floating-point number. | |
| static auto | abs (xtd::int16 value) -> xtd::int16 |
| Returns the absolute value of a 16-bit signed integer. | |
| static auto | abs (xtd::int32 value) -> xtd::int32 |
| Returns the absolute value of a 32-bit signed integer. | |
| static auto | abs (xtd::int64 value) -> xtd::int64 |
| Returns the absolute value of a 64-bit signed integer. | |
| static auto | abs (xtd::sbyte value) -> xtd::sbyte |
| Returns the absolute value of a 8-bit signed integer. | |
| static auto | abs (xtd::slong value) -> xtd::slong |
| Returns the absolute value of a 64-bit signed integer. | |
| static auto | acos (double value) -> double |
| Returns the angle whose cosine is the specified number. | |
| static auto | asin (double value) -> double |
| Returns the angle whose sine is the specified number. | |
| static auto | atan (double value) -> double |
| Returns the angle whose tangent is the specified number. | |
| static auto | atan2 (double y, double x) -> double |
| Returns the angle whose tangent is the specified number. | |
| static auto | big_mul (xtd::int32 a, xtd::int32 b) -> xtd::int64 |
| Produces the full product of two 32-bit numbers. | |
| static auto | ceiling (xtd::decimal value) -> xtd::decimal |
| Returns the smallest integer greater than or equal to the specified double-precision floating-point number. | |
| static double | ceiling (double value) |
| Returns the smallest integer greater than or equal to the specified double-precision floating-point number. | |
| static auto | clamp (xtd::byte value, xtd::byte min, xtd::byte max) noexcept -> xtd::byte |
| Returns value clamped to the inclusive range of min and max. | |
| static auto | clamp (xtd::decimal value, xtd::decimal min, xtd::decimal max) noexcept -> xtd::decimal |
| Returns value clamped to the inclusive range of min and max. | |
| static auto | clamp (double value, double min, double max) noexcept -> double |
| Returns value clamped to the inclusive range of min and max. | |
| static auto | clamp (xtd::int16 value, xtd::int16 min, xtd::int16 max) noexcept -> xtd::int16 |
| Returns value clamped to the inclusive range of min and max. | |
| static auto | clamp (xtd::int32 value, xtd::int32 min, xtd::int32 max) noexcept -> xtd::int32 |
| Returns value clamped to the inclusive range of min and max. | |
| static auto | clamp (xtd::int64 value, xtd::int64 min, xtd::int64 max) noexcept -> xtd::int64 |
| Returns value clamped to the inclusive range of min and max. | |
| static auto | clamp (xtd::slong value, xtd::slong min, xtd::slong max) noexcept -> xtd::slong |
| Returns value clamped to the inclusive range of min and max. | |
| static auto | clamp (xtd::sbyte value, xtd::sbyte min, xtd::sbyte max) noexcept -> xtd::sbyte |
| Returns value clamped to the inclusive range of min and max. | |
| static auto | clamp (xtd::single value, xtd::single min, xtd::single max) noexcept -> xtd::single |
| Returns value clamped to the inclusive range of min and max. | |
| static auto | clamp (xtd::uint16 value, xtd::uint16 min, xtd::uint16 max) noexcept -> xtd::uint16 |
| Returns value clamped to the inclusive range of min and max. | |
| static auto | clamp (xtd::uint32 value, xtd::uint32 min, xtd::uint32 max) noexcept -> xtd::uint32 |
| Returns value clamped to the inclusive range of min and max. | |
| static auto | clamp (xtd::uint64 value, xtd::uint64 min, xtd::uint64 max) noexcept -> xtd::uint64 |
| Returns value clamped to the inclusive range of min and max. | |
| static auto | clamp (xtd::ulong value, xtd::ulong min, xtd::ulong max) noexcept -> xtd::ulong |
| Returns value clamped to the inclusive range of min and max. | |
| static auto | cos (double value) -> double |
| Returns the cosine of the specified angle. | |
| static auto | cosh (double value) -> double |
| Returns the hyperbolic cosine of the specified angle. | |
| static auto | degrees_to_radians (double degrees) noexcept -> double |
| Convert degrees to radians. | |
| static auto | div_rem (xtd::int32 dividend, xtd::int32 divisor, xtd::int32 &remainder) -> xtd::int32 |
| Calculates the quotient of two 32-bit signed integers and also returns the remainder in an output parameter. | |
| static auto | div_rem (xtd::int64 dividend, xtd::int64 divisor, xtd::int64 &remainder) -> xtd::int64 |
| Calculates the quotient of two 64-bit signed integers and also returns the remainder in an output parameter. | |
| static auto | exp (double value) -> double |
| Returns e raised to the specified power. | |
| static auto | floor (xtd::decimal value) -> xtd::decimal |
| Returns the largest integer less than or equal to the specified decimal number. | |
| static auto | floor (double value) -> double |
| Returns the largest integer less than or equal to the specified decimal number. | |
| static auto | ieee_remainder (double dividend, double divisor) -> double |
| Returns the remainder resulting from the division of a specified number by another specified number. | |
| static auto | log (double value) -> double |
| Returns the natural (base e) logarithm of a specified number. | |
| static auto | log (double a, double new_base) -> double |
| Returns the logarithm of a specified number in a specified base. | |
| static auto | log10 (double value) -> double |
| Returns the base 10 logarithm of a specified number. | |
| static auto | max (xtd::byte a, xtd::byte b) noexcept -> xtd::byte |
| Returns the larger of two 8-bit unsigned integers. | |
| static auto | max (xtd::decimal a, xtd::decimal b) noexcept -> xtd::decimal |
| Returns the larger of two double single. | |
| static auto | max (double a, double b) noexcept -> double |
| Returns the larger of two double single. | |
| static auto | max (xtd::int16 a, xtd::int16 b) noexcept -> xtd::int16 |
| Returns the larger of two 16-bit signed integers. | |
| static auto | max (xtd::int32 a, xtd::int32 b) noexcept -> xtd::int32 |
| Returns the larger of two 32-bit signed integers. | |
| static auto | max (xtd::int64 a, xtd::int64 b) noexcept -> xtd::int64 |
| Returns the larger of two 64-bit signed integers. | |
| static auto | max (xtd::slong a, xtd::slong b) noexcept -> xtd::slong |
| Returns the larger of two 64-bit signed integers. | |
| static auto | max (xtd::sbyte a, xtd::sbyte b) noexcept -> xtd::sbyte |
| Returns the larger of two 8-bit signed integers. | |
| static auto | max (xtd::single a, xtd::single b) noexcept -> xtd::single |
| Returns the larger of two single single. | |
| static auto | max (xtd::uint16 a, xtd::uint16 b) noexcept -> xtd::uint16 |
| Returns the larger of two 16-bit unsigned integers. | |
| static auto | max (xtd::uint32 a, xtd::uint32 b) noexcept -> xtd::uint32 |
| Returns the larger of two 32-bit unsigned integers. | |
| static auto | max (xtd::uint64 a, xtd::uint64 b) noexcept -> xtd::uint64 |
| Returns the larger of two 64-bit unsigned integers. | |
| static auto | max (xtd::ulong a, xtd::ulong b) noexcept -> xtd::ulong |
| Returns the larger of two 64-bit unsigned integers. | |
| static auto | min (xtd::byte a, xtd::byte b) noexcept -> xtd::byte |
| Returns the smaller of two 8-bit unsigned integers. | |
| static auto | min (xtd::decimal a, xtd::decimal b) noexcept -> xtd::decimal |
| Returns the smaller of two double single. | |
| static auto | min (double a, double b) noexcept -> double |
| Returns the smaller of two double single. | |
| static auto | min (xtd::int16 a, xtd::int16 b) noexcept -> xtd::int16 |
| Returns the smaller of two 16-bit signed integers. | |
| static auto | min (xtd::int32 a, xtd::int32 b) noexcept -> xtd::int32 |
| Returns the smaller of two 32-bit signed integers. | |
| static auto | min (xtd::int64 a, xtd::int64 b) noexcept -> xtd::int64 |
| Returns the smaller of two 64-bit signed integers. | |
| static auto | min (xtd::slong a, xtd::slong b) noexcept -> xtd::slong |
| Returns the smaller of two 64-bit signed integers. | |
| static auto | min (xtd::sbyte a, xtd::sbyte b) noexcept -> xtd::sbyte |
| Returns the smaller of two 8-bit signed integers. | |
| static auto | min (xtd::single a, xtd::single b) noexcept -> xtd::single |
| Returns the smaller of two single single. | |
| static auto | min (xtd::uint16 a, xtd::uint16 b) noexcept -> xtd::uint16 |
| Returns the smaller of two 16-bit unsigned integers. | |
| static auto | min (xtd::uint32 a, xtd::uint32 b) noexcept -> xtd::uint32 |
| Returns the smaller of two 32-bit unsigned integers. | |
| static auto | min (xtd::uint64 a, xtd::uint64 b) noexcept -> xtd::uint64 |
| Returns the smaller of two 64-bit unsigned integers. | |
| static auto | min (xtd::ulong a, xtd::ulong b) noexcept -> xtd::ulong |
| Returns the smaller of two 64-bit unsigned integers. | |
| static auto | pow (double x, double y) -> double |
| Returns a specified number raised to the specified power. | |
| static auto | radians_to_degrees (double radians) noexcept -> double |
| Convert radians to degrees. | |
| static auto | round (xtd::decimal value) -> xtd::decimal |
| Rounds a double-precision floating-point value to the nearest integral value. | |
| static auto | round (xtd::decimal value, xtd::int32 decimals) -> xtd::decimal |
| Rounds a xtd::decimal value to a specified number of fractional digits. | |
| static auto | round (double value) -> double |
| Rounds a double-precision floating-point value to the nearest integral value. | |
| static auto | round (double value, xtd::int32 decimals) -> double |
| Rounds a xtd::decimal value to a specified number of fractional digits. | |
| static auto | sign (xtd::decimal value) -> xtd::int32 |
| Returns a value indicating the sign of a double-precision floating-point number. | |
| static auto | sign (double value) -> xtd::int32 |
| Returns a value indicating the sign of a double-precision floating-point number. | |
| static auto | sign (xtd::int16 value) -> xtd::int32 |
| Returns a value indicating the sign of a 16-bit signed integer. | |
| static auto | sign (xtd::int32 value) -> xtd::int32 |
| Returns a value indicating the sign of a 32-bit signed integer. | |
| static auto | sign (xtd::int64 value) -> xtd::int32 |
| Returns a value indicating the sign of a 64-bit signed integer. | |
| static auto | sign (xtd::slong value) -> xtd::int32 |
| Returns a value indicating the sign of a 64-bit signed integer. | |
| static auto | sign (xtd::sbyte value) -> xtd::int32 |
| Returns a value indicating the sign of an 8-bit signed integer. | |
| static auto | sign (xtd::single value) -> xtd::int32 |
| Returns a value indicating the sign of a single-precision floating-point number. | |
| static auto | sin (double value) -> double |
| Returns the sine of the specified angle. | |
| static auto | sinh (double value) -> double |
| Returns the hyperbolic sine of the specified angle. | |
| static auto | sqrt (double value) -> double |
| Returns the square root of a specified number. | |
| static auto | tan (double value) -> double |
| Returns the tangent of the specified angle. | |
| static auto | tanh (double value) -> double |
| Returns the hyperbolic tangent of the specified angle. | |
| static auto | truncate (xtd::decimal value) -> xtd::decimal |
| Calculates the integral part of a specified double-precision floating-point number. | |
| static auto | truncate (double value) -> double |
| Calculates the integral part of a specified double-precision floating-point number. | |
Public Deprecated Static Methods | |
| static auto | is_infinity (double value) noexcept -> bool |
| Returns a value indicating whether the specified number evaluates to negative or positive infinity. | |
| static auto | is_negative_infinity (double value) noexcept -> bool |
| Returns a value indicating whether the specified number evaluates to negative infinity. | |
| static auto | is_positive_infinity (double value) noexcept -> bool |
| Returns a value indicating whether the specified number evaluates to positive infinity. | |
| static auto | is_NaN (double value) noexcept -> bool |
| Returns a value indicating whether the specified number evaluates to not a number. | |
|
staticnodiscard |
Returns the absolute value of a decimal number.
| value | A number in the range xtd::decimal_object::min_value <= value <= xtd::decimal_object::max_value. |
|
staticnodiscard |
Returns the absolute value of a double-precision floating-point number.
| value | A number in the range xtd::double_object::min_value <= value <= xtd::double_object::max_value. |
|
staticnodiscard |
Returns the absolute value of a single-precision floating-point number.
| value | A number in the range xtd::single_object::min_value <= value <= xtd::single_object::max_value. |
|
staticnodiscard |
Returns the absolute value of a 16-bit signed integer.
| value | A number in the range xtd::int16_object::min_value <= value <= xtd::int16_object::max_value. |
| xtd::overflow_exception | value equals xtd::int16_object::min_value. |
|
staticnodiscard |
Returns the absolute value of a 32-bit signed integer.
| value | A number in the range xtd::int32_object::min_value <= value <= xtd::int32_object::max_value. |
| xtd::overflow_exception | value equals xtd::int32_object::min_value. |
|
staticnodiscard |
Returns the absolute value of a 64-bit signed integer.
| value | A number in the range xtd::int64_object::min_value <= value <= xtd::int64_object::max_value. |
| xtd::overflow_exception | value equals xtd::int64_object::min_value. |
|
staticnodiscard |
Returns the absolute value of a 8-bit signed integer.
| value | A number in the range xtd::sbyte_object::min_value <= value <= xtd::sbyte_object::max_value. |
| xtd::overflow_exception | value equals xtd::sbyte_object::min_value. |
|
staticnodiscard |
Returns the absolute value of a 64-bit signed integer.
| value | A number in the range xtd::slong_object::min_value <= value <= xtd::slong_object::max_value. |
| xtd::overflow_exception | value equals xtd::slong_object::min_value. |
|
staticnodiscard |
Returns the angle whose cosine is the specified number.
| value | A number representing a cosine, where -1 <= value <= 1. |
|
staticnodiscard |
Returns the angle whose sine is the specified number.
| value | A number representing a sine, where -1 <= value <= 1. |
|
staticnodiscard |
Returns the angle whose tangent is the specified number.
| value | A number representing a tangent. |
|
staticnodiscard |
Returns the angle whose tangent is the specified number.
| y | The y coordinate of a point. |
| x | The x coordinate of a point. |
Observe the following:
|
staticnodiscard |
Produces the full product of two 32-bit numbers.
| a | The first xtd::int32 to multiply. |
| b | The second xtd::int32 to multiply. |
|
staticnodiscard |
Returns the smallest integer greater than or equal to the specified double-precision floating-point number.
| value | A double-precision floating-point number. |
|
staticnodiscard |
Returns the smallest integer greater than or equal to the specified double-precision floating-point number.
| value | A double-precision floating-point number. |
|
staticnodiscardnoexcept |
Returns value clamped to the inclusive range of min and max.
| value | The value to be clamped. |
| min | The lower bound of the result. |
| max | The upper bound of the result. |
|
staticnodiscardnoexcept |
Returns value clamped to the inclusive range of min and max.
| value | The value to be clamped. |
| min | The lower bound of the result. |
| max | The upper bound of the result. |
|
staticnodiscardnoexcept |
Returns value clamped to the inclusive range of min and max.
| value | The value to be clamped. |
| min | The lower bound of the result. |
| max | The upper bound of the result. |
|
staticnodiscardnoexcept |
Returns value clamped to the inclusive range of min and max.
| value | The value to be clamped. |
| min | The lower bound of the result. |
| max | The upper bound of the result. |
|
staticnodiscardnoexcept |
Returns value clamped to the inclusive range of min and max.
| value | The value to be clamped. |
| min | The lower bound of the result. |
| max | The upper bound of the result. |
|
staticnodiscardnoexcept |
Returns value clamped to the inclusive range of min and max.
| value | The value to be clamped. |
| min | The lower bound of the result. |
| max | The upper bound of the result. |
|
staticnodiscardnoexcept |
Returns value clamped to the inclusive range of min and max.
| value | The value to be clamped. |
| min | The lower bound of the result. |
| max | The upper bound of the result. |
|
staticnodiscardnoexcept |
Returns value clamped to the inclusive range of min and max.
| value | The value to be clamped. |
| min | The lower bound of the result. |
| max | The upper bound of the result. |
|
staticnodiscardnoexcept |
Returns value clamped to the inclusive range of min and max.
| value | The value to be clamped. |
| min | The lower bound of the result. |
| max | The upper bound of the result. |
|
staticnodiscardnoexcept |
Returns value clamped to the inclusive range of min and max.
| value | The value to be clamped. |
| min | The lower bound of the result. |
| max | The upper bound of the result. |
|
staticnodiscardnoexcept |
Returns value clamped to the inclusive range of min and max.
| value | The value to be clamped. |
| min | The lower bound of the result. |
| max | The upper bound of the result. |
|
staticnodiscardnoexcept |
Returns value clamped to the inclusive range of min and max.
| value | The value to be clamped. |
| min | The lower bound of the result. |
| max | The upper bound of the result. |
|
staticnodiscardnoexcept |
Returns value clamped to the inclusive range of min and max.
| value | The value to be clamped. |
| min | The lower bound of the result. |
| max | The upper bound of the result. |
|
staticnodiscard |
Returns the cosine of the specified angle.
| value | An angle, measured in radians. |
|
staticnodiscard |
Returns the hyperbolic cosine of the specified angle.
| value | An angle, measured in radians. |
|
staticnodiscardnoexcept |
Convert degrees to radians.
| degrees | A double-precision floating-point number. |
|
staticnodiscard |
Calculates the quotient of two 32-bit signed integers and also returns the remainder in an output parameter.
| dividend | The dividend. |
| divisor | The divisor. |
| remainder | An angle, measured in radians. |
|
staticnodiscard |
Calculates the quotient of two 64-bit signed integers and also returns the remainder in an output parameter.
| dividend | The dividend. |
| divisor | The divisor. |
| remainder | An angle, measured in radians. |
|
staticnodiscard |
Returns e raised to the specified power.
| value | A number specifying a power. |
|
staticnodiscard |
Returns the largest integer less than or equal to the specified decimal number.
| value | A double-precision floating-point number. |
|
staticnodiscard |
Returns the largest integer less than or equal to the specified decimal number.
| value | A double-precision floating-point number. |
|
staticnodiscard |
Returns the remainder resulting from the division of a specified number by another specified number.
| dividend | A dividend. |
| divisor | A divisor. |
|
staticnodiscard |
Returns the natural (base e) logarithm of a specified number.
| value | A number whose logarithm is to be found. |
| value parameter | Return value |
|---|---|
| Positive | The natural logarithm of d; that is, ln value, or log e value |
| Zero | xtd::math::negative_infinity |
| Negative | xtd::math::NaN |
| Equal to xtd::math::NaN | xtd::math::NaN |
| Equal to xtd::math::positive_infinity | xtd::math::positive_infinity |
|
staticnodiscard |
Returns the logarithm of a specified number in a specified base.
| a | The number whose logarithm is to be found. |
| new_base | The base of the logarithm. |
| a | new_base | Return value |
|---|---|---|
| a > 0 | (0 < new_base < 1) -or- (new_base > 1) | log new_base (a) |
| a < 0 | (any value) | xtd::math::NaN |
| (any value) | new_base < 0 | xtd::math::NaN |
| a != 1 | new_base = 0 | xtd::math::NaN |
| a != 1 | new_base = xtd::math::positive_infinity | xtd::math::NaN |
| a = xtd::math::NaN | (any value) | xtd::math::NaN |
| (any value) | new_base = xtd::math::NaN | xtd::math::NaN |
| (any value) | new_base = 1 | xtd::math::NaN |
| a = 0 | 0 < new_base < 1 | xtd::math::positive_infinity |
| a = 0 | new_base > 1 | xtd::math::negative_infinity |
| a = xtd::math::positive_infinity | 0 < new_base < 1 | xtd::math::negative_infinity |
| a = xtd::math::positive_infinity | new_base > 1 | xtd::math::positive_infinity |
| a = 1 | new_base = 0 | 0 |
| a = 1 | new_base = xtd::math::positive_infinity | 0 |
|
staticnodiscard |
Returns the base 10 logarithm of a specified number.
| value | A number whose logarithm is to be found. |
| value parameter | Return value |
|---|---|
| Positive | The natural logarithm of d; that is, ln value, or log e value |
| Zero | xtd::math::negative_infinity |
| Negative | xtd::math::NaN |
| Equal to xtd::math::NaN | xtd::math::NaN |
| Equal to xtd::math::positive_infinity | xtd::math::positive_infinity |
Returns the larger of two 8-bit unsigned integers.
| a | The first of two 8-bit unsigned integers to compare. |
| b | The second of two 8-bit unsigned integers to compare. |
|
staticnodiscardnoexcept |
Returns the larger of two double single.
| a | The first of two double single to compare. |
| b | The second of two double single to compare. |
|
staticnodiscardnoexcept |
Returns the larger of two double single.
| a | The first of two double single to compare. |
| b | The second of two double single to compare. |
|
staticnodiscardnoexcept |
Returns the larger of two 16-bit signed integers.
| a | The first of two 16-bit signed integers to compare. |
| b | The second of two 16-bit signed integers to compare. |
|
staticnodiscardnoexcept |
Returns the larger of two 32-bit signed integers.
| a | The first of two 32-bit signed integers to compare. |
| b | The second of two 32-bit signed integers to compare. |
|
staticnodiscardnoexcept |
Returns the larger of two 64-bit signed integers.
| a | The first of two 64-bit signed integers to compare. |
| b | The second of two 64-bit signed integers to compare. |
|
staticnodiscardnoexcept |
Returns the larger of two 64-bit signed integers.
| a | The first of two 64-bit signed integers to compare. |
| b | The second of two 64-bit signed integers to compare. |
|
staticnodiscardnoexcept |
Returns the larger of two 8-bit signed integers.
| a | The first of two 8-bit signed integers to compare. |
| b | The second of two 8-bit signed integers to compare. |
|
staticnodiscardnoexcept |
Returns the larger of two single single.
| a | The first of two single single to compare. |
| b | The second of two single single to compare. |
|
staticnodiscardnoexcept |
Returns the larger of two 16-bit unsigned integers.
| a | The first of two 16-bit unsigned integers to compare. |
| b | The second of two 16-bit unsigned integers to compare. |
|
staticnodiscardnoexcept |
Returns the larger of two 32-bit unsigned integers.
| a | The first of two 32-bit unsigned integers to compare. |
| b | The second of two 32-bit unsigned integers to compare. |
|
staticnodiscardnoexcept |
Returns the larger of two 64-bit unsigned integers.
| a | The first of two 64-bit unsigned integers to compare. |
| b | The second of two 64-bit unsigned integers to compare. |
|
staticnodiscardnoexcept |
Returns the larger of two 64-bit unsigned integers.
| a | The first of two 64-bit unsigned integers to compare. |
| b | The second of two 64-bit unsigned integers to compare. |
Returns the smaller of two 8-bit unsigned integers.
| a | The first of two 8-bit unsigned integers to compare. |
| b | The second of two 8-bit unsigned integers to compare. |
|
staticnodiscardnoexcept |
Returns the smaller of two double single.
| a | The first of two double single to compare. |
| b | The second of two double single to compare. |
|
staticnodiscardnoexcept |
Returns the smaller of two double single.
| a | The first of two double single to compare. |
| b | The second of two double single to compare. |
|
staticnodiscardnoexcept |
Returns the smaller of two 16-bit signed integers.
| a | The first of two 16-bit signed integers to compare. |
| b | The second of two 16-bit signed integers to compare. |
|
staticnodiscardnoexcept |
Returns the smaller of two 32-bit signed integers.
| a | The first of two 32-bit signed integers to compare. |
| b | The second of two 32-bit signed integers to compare. |
|
staticnodiscardnoexcept |
Returns the smaller of two 64-bit signed integers.
| a | The first of two 64-bit signed integers to compare. |
| b | The second of two 64-bit signed integers to compare. |
|
staticnodiscardnoexcept |
Returns the smaller of two 64-bit signed integers.
| a | The first of two 64-bit signed integers to compare. |
| b | The second of two 64-bit signed integers to compare. |
|
staticnodiscardnoexcept |
Returns the smaller of two 8-bit signed integers.
| a | The first of two 8-bit signed integers to compare. |
| b | The second of two 8-bit signed integers to compare. |
|
staticnodiscardnoexcept |
Returns the smaller of two single single.
| a | The first of two single single to compare. |
| b | The second of two single single to compare. |
|
staticnodiscardnoexcept |
Returns the smaller of two 16-bit unsigned integers.
| a | The first of two 16-bit unsigned integers to compare. |
| b | The second of two 16-bit unsigned integers to compare. |
|
staticnodiscardnoexcept |
Returns the smaller of two 32-bit unsigned integers.
| a | The first of two 32-bit unsigned integers to compare. |
| b | The second of two 32-bit unsigned integers to compare. |
|
staticnodiscardnoexcept |
Returns the smaller of two 64-bit unsigned integers.
| a | The first of two 64-bit unsigned integers to compare. |
| b | The second of two 64-bit unsigned integers to compare. |
|
staticnodiscardnoexcept |
Returns the smaller of two 64-bit unsigned integers.
| a | The first of two 64-bit unsigned integers to compare. |
| b | The second of two 64-bit unsigned integers to compare. |
|
staticnodiscard |
Returns a specified number raised to the specified power.
| x | A double-precision floating-point number to be raised to a power. |
| y | A double-precision floating-point number that specifies a power. |
| Parameters | Return value |
|---|---|
| x or y = math::NaN. | math::NaN |
| x = Any value except math::NaN; y = 0. | 1 |
| x = math::negative_infinity; y < 0. | 0 |
| x = math::negative_infinity; y is positive odd integer. | math::negative_infinity |
| x = math::negative_infinity; y is positive but not an odd integer. | math::positive_infinity |
| x < 0 but not math::negative_infinity; y is not an integer, math::negative_infinity, or math::positive_infinity. | math::NaN |
| x = -1; y = math::negative_infinity or math::positive_infinity. | math::NaN |
| -1 < x < 1; y = math::negative_infinity. | math::positive_infinity |
| -1 < x < 1; y = math::positive_infinity. | 0 |
| x < -1 or x > 1; y = math::negative_infinity. | 0 |
| x < -1 or x > 1; y = math::positive_infinity. | math::positive_infinity |
| x = 0; y < 0. | math::positive_infinity |
| x = 0; y > 0. | 0 |
| x = 1; y is any value except math::NaN. | 1 |
| x = math::positive_infinity; y < 0 | 0 |
| x = math::positive_infinity; y > 0. | math::positive_infinity |
|
staticnodiscardnoexcept |
Convert radians to degrees.
| radians | A double-precision floating-point number. |
|
staticnodiscard |
Rounds a double-precision floating-point value to the nearest integral value.
| value | A double-precision floating-point number to be rounded. |
|
staticnodiscard |
Rounds a xtd::decimal value to a specified number of fractional digits.
| value | A double-precision floating-point number to be rounded. |
| decimals | The number of xtd::decimal places in the return value. |
|
staticnodiscard |
Rounds a double-precision floating-point value to the nearest integral value.
| value | A double-precision floating-point number to be rounded. |
|
staticnodiscard |
Rounds a xtd::decimal value to a specified number of fractional digits.
| value | A double-precision floating-point number to be rounded. |
| decimals | The number of xtd::decimal places in the return value. |
|
staticnodiscard |
Returns a value indicating the sign of a double-precision floating-point number.
| value | A signed number. |
| Return value | Meaning |
|---|---|
| -1 | value is less than zero. |
| 0 | value is equal to zero. |
| 1 | value is greater than zero. |
| xtd::arithmetic_exception | value is equal to NaN. |
|
staticnodiscard |
Returns a value indicating the sign of a double-precision floating-point number.
| value | A signed number. |
| Return value | Meaning |
|---|---|
| -1 | value is less than zero. |
| 0 | value is equal to zero. |
| 1 | value is greater than zero. |
| xtd::arithmetic_exception | value is equal to NaN. |
|
staticnodiscard |
Returns a value indicating the sign of a 16-bit signed integer.
| value | A signed number. |
| Return value | Meaning |
|---|---|
| -1 | value is less than zero. |
| 0 | value is equal to zero. |
| 1 | value is greater than zero. |
|
staticnodiscard |
Returns a value indicating the sign of a 32-bit signed integer.
| value | A signed number. |
| Return value | Meaning |
|---|---|
| -1 | value is less than zero. |
| 0 | value is equal to zero. |
| 1 | value is greater than zero. |
|
staticnodiscard |
Returns a value indicating the sign of a 64-bit signed integer.
| value | A signed number. |
| Return value | Meaning |
|---|---|
| -1 | value is less than zero. |
| 0 | value is equal to zero. |
| 1 | value is greater than zero. |
|
staticnodiscard |
Returns a value indicating the sign of a 64-bit signed integer.
| value | A signed number. |
| Return value | Meaning |
|---|---|
| -1 | value is less than zero. |
| 0 | value is equal to zero. |
| 1 | value is greater than zero. |
|
staticnodiscard |
Returns a value indicating the sign of an 8-bit signed integer.
| value | A signed number. |
| Return value | Meaning |
|---|---|
| -1 | value is less than zero. |
| 0 | value is equal to zero. |
| 1 | value is greater than zero. |
|
staticnodiscard |
Returns a value indicating the sign of a single-precision floating-point number.
| value | A signed number. |
| Return value | Meaning |
|---|---|
| -1 | value is less than zero. |
| 0 | value is equal to zero. |
| 1 | value is greater than zero. |
| xtd::arithmetic_exception | value is equal to NaN. |
|
staticnodiscard |
Returns the sine of the specified angle.
| value | An angle, measured in radians. |
|
staticnodiscard |
Returns the hyperbolic sine of the specified angle.
| value | An angle, measured in radians. |
|
staticnodiscard |
Returns the square root of a specified number.
| value | The number whose square root is to be found. |
| value parameter | Return value |
|---|---|
| Zero or positive | The positive square root of d. |
| Negative | math::NaN |
| Equals math::NaN | math::NaN |
| Equals math::positive_infinity | math::positive_infinity |
|
staticnodiscard |
Returns the tangent of the specified angle.
| value | An angle, measured in radians. |
|
staticnodiscard |
Returns the hyperbolic tangent of the specified angle.
| value | An angle, measured in radians. |
|
staticnodiscard |
Calculates the integral part of a specified double-precision floating-point number.
| value | A number to truncate. |
| value | Return value |
|---|---|
| NaN | NaN |
| NegativeInfinity | NegativeInfinity |
| PositiveInfinity | PositiveInfinity |
|
staticnodiscard |
Calculates the integral part of a specified double-precision floating-point number.
| value | A number to truncate. |
| value | Return value |
|---|---|
| math::NaN | math::NaN |
| math::negative_infinity | math::negative_infinity |
| math::positive_infinity | math::positive_infinity |
|
staticnodiscardnoexcept |
Returns a value indicating whether the specified number evaluates to negative or positive infinity.
| value | A double-precision floating-point number. |
|
staticnodiscardnoexcept |
Returns a value indicating whether the specified number evaluates to negative infinity.
| value | A double-precision floating-point number. |
|
staticnodiscardnoexcept |
Returns a value indicating whether the specified number evaluates to positive infinity.
| value | A double-precision floating-point number. |
|
staticnodiscardnoexcept |
Returns a value indicating whether the specified number evaluates to not a number.
| value | A double-precision floating-point number. |
|
staticconstexpr |
Represents the natural logarithmic base, specified by the constant, e. This field is constant.
|
staticconstexpr |
Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π. This field is constant.
|
staticconstexpr |
Represents the number of radians in one turn, specified by the constant, τ.
|
staticconstexpr |
Represents the smallest positive Double value greater than zero. This field is constant.
|
staticconstexpr |
Represents infinity. This field is constant.
|
staticconstexpr |
Represents the largest possible value of double. This field is constant.
|
staticconstexpr |
Represents the smallest possible value of double. This field is constant.
|
staticconstexpr |
Represents not a number (NaN). This field is constant.
|
staticconstexpr |
Represents negative infinity. This field is constant.
|
staticconstexpr |
Represents positive infinity. This field is constant.