| math Class |
Namespace: C
The math type exposes the following members.
| Name | Description | |
|---|---|---|
| copysign(Double, Double) |
Copies the sign of number2 to number1.
| |
| copysign(Single, Single) |
Copies the sign of number2 to number1.
| |
| Equals | (Inherited from Object.) | |
| exponent(Double) |
Gets the exponent bits of the specified floating-point number.
| |
| exponent(Single) |
Gets the exponent bits of the specified floating-point number.
| |
| fpclassify(Double) |
Categorizes the given floating point number into the categories: zero, subnormal, normal, infinite or NAN.
| |
| fpclassify(Single) |
Categorizes the given floating point number into the categories: zero, subnormal, normal, infinite or NAN.
| |
| frexp(Double, Int32) |
Decomposes the given floating-point number into a normalized fraction and an integral power of two.
| |
| frexp(Single, Int32) |
Decomposes the given floating-point number into a normalized fraction and an integral power of two.
| |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the type of the current instance. (Inherited from Object.) | |
| ilogb(Double) |
Gets the unbiased exponent of the specified floating-point number.
| |
| ilogb(Single) |
Gets the unbiased exponent of the specified floating-point number.
| |
| Int32BitsToSingle |
Converts the specified 32-bit signed integer to a single-precision floating point number.
| |
| isfinite(Double) |
Checks if the given number has finite value.
| |
| isfinite(Single) |
Checks if the given number has finite value.
| |
| isinf(Double) |
Checks if the given number is positive or negative infinity.
| |
| isinf(Single) |
Checks if the given number is positive or negative infinity.
| |
| isnan(Double) |
Checks if the given number is NaN (Not A Number).
| |
| isnan(Single) |
Checks if the given number is NaN (Not A Number).
| |
| isnormal(Double) |
Checks if the given number is normal.
| |
| isnormal(Single) |
Checks if the given number is normal.
| |
| isunordered(Double, Double) |
Gets a value that indicates whether two floating-point numbers are unordered.
| |
| isunordered(Single, Single) |
Gets a value that indicates whether two floating-point numbers are unordered.
| |
| ldexp(Double, Int32) |
Scales the specified floating-point number by 2^exponent.
| |
| ldexp(Single, Int32) |
Scales the specified floating-point number by 2^exponent.
| |
| logb(Double) |
Gets the unbiased exponent of the specified floating-point number.
| |
| logb(Single) |
Gets the unbiased exponent of the specified floating-point number.
| |
| mantissa(Double) |
Gets the mantissa bits of the specified floating-point number without the implicit leading 1 bit.
| |
| mantissa(Single) |
Gets the mantissa bits of the specified floating-point number without the implicit leading 1 bit.
| |
| nextafter(Double, Double) |
Gets the floating-point number that is next after fromNumber in the direction of towardNumber.
| |
| nextafter(Single, Single) |
Gets the floating-point number that is next after fromNumber in the direction of towardNumber.
| |
| nexttoward(Double, Double) |
Gets the floating-point number that is next after fromNumber in the direction of towardNumber.
| |
| nexttoward(Single, Single) |
Gets the floating-point number that is next after fromNumber in the direction of towardNumber.
| |
| scalbln(Double, Int64) |
Scales the specified floating-point number by 2^exponent.
| |
| scalbln(Single, Int64) |
Scales the specified floating-point number by 2^exponent.
| |
| scalbn(Double, Int32) |
Scales the specified floating-point number by 2^exponent.
| |
| scalbn(Single, Int32) |
Scales the specified floating-point number by 2^exponent.
| |
| signbit(Double) |
Gets the sign bit of the specified floating-point number.
| |
| signbit(Single) |
Gets the sign bit of the specified floating-point number.
| |
| significand(Double) |
Gets the significand of the specified floating-point number.
| |
| significand(Single) |
Gets the significand of the specified floating-point number.
| |
| SingleToInt32Bits |
Converts the specified single-precision floating point number to a 32-bit signed integer.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| DBL_DENORM_MAX |
Maximum positive, subnormal value of a Double (2.2250738585072009e-308).
| |
| DBL_DENORM_MIN |
Minimum positive, subnormal value of a Double (4.94065645841247E-324).
| |
| DBL_EXP_BIAS |
The exponent bias of a Double, i.e. value to subtract from the stored exponent to get the real exponent (1023).
| |
| DBL_EXP_BITS |
The number of bits in the exponent of a Double (11).
| |
| DBL_EXP_CLR_MASK |
Bit-mask used for clearing the exponent bits of a Double (0x800fffffffffffff).
| |
| DBL_EXP_MASK |
Bit-mask used for extracting the exponent bits of a Double (0x7ff0000000000000).
| |
| DBL_EXP_MAX |
The maximum (unbiased) exponent of a Double (1023).
| |
| DBL_EXP_MIN |
The minimum (unbiased) exponent of a Double (-1022).
| |
| DBL_MANT_BITS | ||
| DBL_MANT_CLR_MASK |
Bit-mask used for clearing the mantissa bits of a Double (0xfff0000000000000).
| |
| DBL_MANT_MASK |
Bit-mask used for extracting the mantissa bits of a Double (0x000fffffffffffff).
| |
| DBL_MAX |
Maximum positive, normal value of a Double (1.7976931348623157E+308).
| |
| DBL_MIN |
Minimum positive, normal value of a Double (2.2250738585072014e-308).
| |
| DBL_SGN_CLR_MASK |
Bit-mask used for clearing the sign bit of a Double (0x7fffffffffffffff).
| |
| DBL_SGN_MASK |
Bit-mask used for extracting the sign bit of a Double (0x8000000000000000).
| |
| FLT_DENORM_MAX |
Maximum positive, subnormal value of a Single (1.17549421e-38).
| |
| FLT_DENORM_MIN |
Minimum positive, subnormal value of a Single (1.401298E-45).
| |
| FLT_EXP_BIAS |
The exponent bias of a Single, i.e. value to subtract from the stored exponent to get the real exponent (127).
| |
| FLT_EXP_BITS |
The number of bits in the exponent of a Single (8).
| |
| FLT_EXP_CLR_MASK |
Bit-mask used for clearing the exponent bits of a Single (0x807fffff).
| |
| FLT_EXP_MASK |
Bit-mask used for extracting the exponent bits of a Single (0x7f800000).
| |
| FLT_EXP_MAX |
The maximum (unbiased) exponent of a Single (127).
| |
| FLT_EXP_MIN |
The minimum (unbiased) exponent of a Single (-126).
| |
| FLT_MANT_BITS | ||
| FLT_MANT_CLR_MASK |
Bit-mask used for clearing the mantissa bits of a Single (0xff800000).
| |
| FLT_MANT_MASK |
Bit-mask used for extracting the mantissa bits of a Single (0x007fffff).
| |
| FLT_MAX |
Maximum positive, normal value of a Single (3.40282347e+38).
| |
| FLT_MIN |
Minimum positive, normal value of a Single (1.17549435e-38).
| |
| FLT_SGN_CLR_MASK |
Bit-mask used for clearing the sign bit of a Single (0x7fffffff).
| |
| FLT_SGN_MASK |
Bit-mask used for extracting the sign bit of a Single (0x80000000).
| |
| FP_ILOGB0 | ||
| FP_ILOGBNAN |
Value returned by ilogb(Double) or ilogb(Single) when its input argument is NaN or NaN respectively..
| |
| FP_INFINITE |
Indicates that the value is not representable by the underlying type (positive or negative infinity)
| |
| FP_NAN |
Indicates that the value is not representable by the underlying type (positive or negative infinity)
| |
| FP_NORMAL |
Indicates that a floating-point value is normal, i.e. not infinity, subnormal, NaN (not-a-number) or zero.
| |
| FP_SUBNORMAL |
Indicates that a floating-point value is subnormal.
| |
| FP_ZERO |
Indicates that a floating-point value is positive or negative zero.
| |
| INT_MAX |
Both double and single precision functions are implemented. All functions are static and their names follow the C Standard. The class is named after the C header file where the functions are declared.