Pack() public static method

Packs the specified f.
public static Pack ( float f ) : ushort
f float The f.
return ushort
Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Half" /> structure.
 /// </summary>
 /// <param name = "value">The floating point value that should be stored in 16 bit format.</param>
 public Half(float value)
 {
     this.value = HalfUtils.Pack(value);
 }