Click or drag to resize
math Methods

The math type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCode examplecopysign(Double, Double)
Copies the sign of number2 to number1.
Public methodStatic memberCode examplecopysign(Single, Single)
Copies the sign of number2 to number1.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodStatic memberexponent(Double)
Gets the exponent bits of the specified floating-point number.
Public methodStatic memberexponent(Single)
Gets the exponent bits of the specified floating-point number.
Public methodStatic memberfpclassify(Double)
Categorizes the given floating point number into the categories: zero, subnormal, normal, infinite or NAN.
Public methodStatic memberfpclassify(Single)
Categorizes the given floating point number into the categories: zero, subnormal, normal, infinite or NAN.
Public methodStatic memberCode examplefrexp(Double, Int32)
Decomposes the given floating-point number into a normalized fraction and an integral power of two.
Public methodStatic memberCode examplefrexp(Single, Int32)
Decomposes the given floating-point number into a normalized fraction and an integral power of two.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodStatic memberCode exampleilogb(Double)
Gets the unbiased exponent of the specified floating-point number.
Public methodStatic memberCode exampleilogb(Single)
Gets the unbiased exponent of the specified floating-point number.
Public methodStatic memberInt32BitsToSingle
Converts the specified 32-bit signed integer to a single-precision floating point number.
Public methodStatic memberisfinite(Double)
Checks if the given number has finite value.
Public methodStatic memberisfinite(Single)
Checks if the given number has finite value.
Public methodStatic memberisinf(Double)
Checks if the given number is positive or negative infinity.
Public methodStatic memberisinf(Single)
Checks if the given number is positive or negative infinity.
Public methodStatic memberisnan(Double)
Checks if the given number is NaN (Not A Number).
Public methodStatic memberisnan(Single)
Checks if the given number is NaN (Not A Number).
Public methodStatic memberisnormal(Double)
Checks if the given number is normal.
Public methodStatic memberisnormal(Single)
Checks if the given number is normal.
Public methodStatic memberisunordered(Double, Double)
Gets a value that indicates whether two floating-point numbers are unordered.
Public methodStatic memberisunordered(Single, Single)
Gets a value that indicates whether two floating-point numbers are unordered.
Public methodStatic memberCode exampleldexp(Double, Int32)
Scales the specified floating-point number by 2^exponent.
Public methodStatic memberCode exampleldexp(Single, Int32)
Scales the specified floating-point number by 2^exponent.
Public methodStatic memberCode examplelogb(Double)
Gets the unbiased exponent of the specified floating-point number.
Public methodStatic memberCode examplelogb(Single)
Gets the unbiased exponent of the specified floating-point number.
Public methodStatic membermantissa(Double)
Gets the mantissa bits of the specified floating-point number without the implicit leading 1 bit.
Public methodStatic membermantissa(Single)
Gets the mantissa bits of the specified floating-point number without the implicit leading 1 bit.
Public methodStatic memberCode examplenextafter(Double, Double)
Gets the floating-point number that is next after fromNumber in the direction of towardNumber.
Public methodStatic memberCode examplenextafter(Single, Single)
Gets the floating-point number that is next after fromNumber in the direction of towardNumber.
Public methodStatic membernexttoward(Double, Double)
Gets the floating-point number that is next after fromNumber in the direction of towardNumber.
Public methodStatic membernexttoward(Single, Single)
Gets the floating-point number that is next after fromNumber in the direction of towardNumber.
Public methodStatic memberCode examplescalbln(Double, Int64)
Scales the specified floating-point number by 2^exponent.
Public methodStatic memberCode examplescalbln(Single, Int64)
Scales the specified floating-point number by 2^exponent.
Public methodStatic memberCode examplescalbn(Double, Int32)
Scales the specified floating-point number by 2^exponent.
Public methodStatic memberCode examplescalbn(Single, Int32)
Scales the specified floating-point number by 2^exponent.
Public methodStatic membersignbit(Double)
Gets the sign bit of the specified floating-point number.
Public methodStatic membersignbit(Single)
Gets the sign bit of the specified floating-point number.
Public methodStatic memberCode examplesignificand(Double)
Gets the significand of the specified floating-point number.
Public methodStatic memberCode examplesignificand(Single)
Gets the significand of the specified floating-point number.
Public methodStatic memberSingleToInt32Bits
Converts the specified single-precision floating point number to a 32-bit signed integer.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also