메소드 | 설명 | |
---|---|---|
FloatToUInt16 ( float value, byte decimalBits ) : ushort |
Converts a
|
|
GetUShortMask ( byte bits ) : ushort |
Constructs a mask which can be used for FloatToUInt16(float, byte) and UInt16ToFloat(ushort, byte).
|
|
UInt16ToFloat ( ushort value, byte decimalBits ) : float |
Converts a rounded
|
public static FloatToUInt16 ( float value, byte decimalBits ) : ushort | ||
value | float | The float value to convert. |
decimalBits | byte | The number of bits in the ushort value which represent decimals. |
리턴 | ushort |
public static GetUShortMask ( byte bits ) : ushort | ||
bits | byte | The number of bits that should be set in the mask. |
리턴 | ushort |
public static UInt16ToFloat ( ushort value, byte decimalBits ) : float | ||
value | ushort | The ushort value to convert. |
decimalBits | byte | The number of bits in the ushort value which represent decimals. |
리턴 | float |