Click or drag to resize

Half Structure

Represents a 16-bit half-precision floating point value according to the IEEE 754 standard.

Namespace:  Syroot.NintenTools.Bfres
Assembly:  Syroot.NintenTools.Bfres (in Syroot.NintenTools.Bfres.dll) Version: 1.5.0
Syntax
C#
public struct Half

The Half type exposes the following members.

Methods
  NameDescription
Public methodEquals(Object)
Gets a value indicating whether this Half is the same as the second specified Half.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Half)
Indicates whether the current Half is equal to another Half.
Public methodGetHashCode
Gets a hash code as an indication for object equality.
(Overrides ValueTypeGetHashCode.)
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 (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 methodToString
Gets a string describing this Half.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds the first Half to the second one.
Public operatorStatic memberDivision
Divides the first Half through the second one.
Public operatorStatic memberEquality
Gets a value indicating whether the first specified Half is the same as the second specified Half.
Public operatorStatic member(Double to Half)
Converts the given value value to a Half instance.
Public operatorStatic member(Int32 to Half)
Converts the given value value to a Half instance.
Public operatorStatic member(Single to Half)
Converts the given value value to a Half instance.
Public operatorStatic member(Half to Int32)
Converts the given value value to a Int32 instance.
Public operatorStatic member(Half to Double)
Converts the given value value to a Double instance.
Public operatorStatic member(Half to Single)
Converts the given value value to a Single instance.
Public operatorStatic memberInequality
Gets a value indicating whether the first specified Half is not the same as the second specified Half.
Public operatorStatic memberMultiply
Multiplicates the first Half by the second one.
Public operatorStatic memberSubtraction
Subtracts the first Half from the second one.
Public operatorStatic memberUnaryNegation
Negates the given Half.
Public operatorStatic memberUnaryPlus
Returns the given Half.
Top
Fields
  NameDescription
Public fieldStatic memberEpsilon
Represents the smallest positive Half value greater than zero.
Public fieldStatic memberMaxValue
Represents the largest possible value of Half.
Public fieldStatic memberMinValue
Represents the smallest possible value of Half.
Public fieldStatic memberNaN
Represents not a number (NaN).
Public fieldStatic memberNegativeInfinity
Represents negative infinity.
Public fieldStatic memberPositiveInfinity
Represents positive infinity.
Top
Remarks
Examples: SEEEEEFF_FFFFFFFF 0b00000000_00000000 = 0 1b00000000_00000000 = -0 0b00111100_00000000 = 1 0b11000000_00000000 = -2 0b11111011_11111111 = 65504 (MaxValue) 0b01111100_00000000 = PositiveInfinity 0b11111100_00000000 = NegativeInfinity
See Also