Help me to convert 4 byte To Float

I want convert 4 byte to float en C#
Help me please

using System;
using Microsoft.SPOT;
using GHI.Premium.System;
public class Program
unsafe public static void Main()
byte[] data = new byte[4];
float real;
//array, serialize
data[0] = 0;
data[1] = 0;
data[2] = 63;
data[3] = 128;
// I want convert 4 byte to float number
float h =(float) (data); ///



@ riad1986 - Is the byte array an ascii representation of a number or a serialized float?

You can use
for other direction.

Here’s mine:

public static float ToFloat(byte[] val,int index)
            float ret;
            GHI.Premium.System.Util.ExtractValueFromArray(out ret,val,index);
            return ret;

thank you so much for the help :clap: