Language
Edit

MathUtilities.BytesToFloat(Byte, Byte) Method

Definition

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.

Applies to