bytes a float

13/11/2003 - 16:34 por Mario Ruiz | Informe spam
Hola a todos:

Alguien sabe convertir una matriz de byte[4] a float o a int?


un saludo

Mario
 

Leer las respuestas

#1 Nivek Eroom
13/11/2003 - 16:44 | Informe spam
Hola Mario,

Uilisa BitConverter como eso
byte[] a = new byte[4]{3,5,6,7};

int b = BitConverter.ToInt32(a,0);

Saludo!


Nivek Eroom

Hace profitar la communidad

"Mario Ruiz"
wrote
in message news:%
Hola a todos:

Alguien sabe convertir una matriz de byte[4] a float o a int?


un saludo

Mario


Preguntas similares