Click or drag to resize

HalfType Methods

The HalfType type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAbs
Returns the absolute value of a half-precision floating-point number.
Public methodStatic memberAdd
Adds two specified System.Half values.
Public methodCompareTo(Object)
Compares this instance to a specified System.Object.
Public methodCompareTo(HalfType)
Compares this instance to a specified System.Half object.
Public methodStatic memberDivide
Divides two specified System.Half values.
Public methodEquals(Object)
Returns a value indicating whether this instance and a specified System.Object represent the same type and value.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(HalfType)
Returns a value indicating whether this instance and a specified System.Half object represent the same value.
Public methodStatic memberGetBits
Converts the value of a specified instance of System.Half to its equivalent binary representation.
Public methodStatic memberGetBytes
Returns the specified half-precision floating point value as an array of bytes.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetTypeCode
Returns the System.TypeCode for value type System.Half.
Public methodStatic memberIsInfinity
Returns a value indicating whether the specified number evaluates to negative or positive infinity.
Public methodStatic memberIsNaN
Returns a value indicating whether the specified number evaluates to not a number (System.Half.NaN).
Public methodStatic memberIsNegativeInfinity
Returns a value indicating whether the specified number evaluates to negative infinity.
Public methodStatic memberIsPositiveInfinity
Returns a value indicating whether the specified number evaluates to positive infinity.
Public methodStatic memberMax
Returns the larger of two half-precision floating-point numbers.
Public methodStatic memberMin
Returns the smaller of two half-precision floating-point numbers.
Public methodStatic memberMultiply
Multiplies two specified System.Half values.
Public methodStatic memberNegate
Returns the result of multiplying the specified System.Half value by negative one.
Public methodStatic memberParse(String)
Converts the string representation of a number to its System.Half equivalent.
Public methodStatic memberParse(String, NumberStyles)
Converts the string representation of a number in a specified style to its System.Half equivalent.
Public methodStatic memberParse(String, IFormatProvider)
Converts the string representation of a number to its System.Half equivalent using the specified culture-specific format information.
Public methodStatic memberParse(String, NumberStyles, IFormatProvider)
Converts the string representation of a number to its System.Half equivalent using the specified style and culture-specific format.
Public methodStatic memberSign
Returns a value indicating the sign of a half-precision floating-point number.
Public methodStatic memberSubtract
Subtracts one specified System.Half value from another.
Public methodStatic memberToHalf(UInt16)
Returns a half-precision floating point number converted from its binary representation.
Public methodStatic memberToHalf(Byte, Int32)
Returns a half-precision floating point number converted from two bytes at a specified position in a byte array.
Public methodToString
Converts the numeric value of this instance to its equivalent string representation.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
Public methodToString(String)
Converts the numeric value of this instance to its equivalent string representation, using the specified format.
Public methodToString(String, IFormatProvider)
Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.
Public methodStatic memberTryParse(String, HalfType)
Converts the string representation of a number to its System.Half equivalent. A return value indicates whether the conversion succeeded or failed.
Public methodStatic memberTryParse(String, NumberStyles, IFormatProvider, HalfType)
Converts the string representation of a number to its System.Half equivalent using the specified style and culture-specific format. A return value indicates whether the conversion succeeded or failed.
Top
Extension Methods
See Also