MathUtilities.BytesToFloat(Byte, Byte) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts two bytes to one float in the range -1 to 1.
public static float BytesToFloat(byte a, byte b);
static member BytesToFloat : byte * byte -> single
Public Shared Function BytesToFloat (a As Byte, b As Byte) As Single
Parameters
- a
- Byte
The least significant byte.
- b
- Byte
The most significant byte.
Returns
Float value between -1 and 1.