C#C
C#14mo ago
daikirai

Get 16 bit floating point precision as a ushort

I saw on SO that using Convert.ToUInt16(2.2) would give me the 16 bit representation of the float, but instead it just gives me 2, what is the proper way to do what i want?
Was this page helpful?