Convert Float / Single to Bytes

	float float1 = 1.0F;
	Byte[] ByteArray1 = BitConverter.GetBytes(float1);

Convert Bytes to Float/Single

	Byte[] ByteArray1 = new Byte[4] {1,2,3,4};
	float float1 = BitConverter.ToSingle(ByteArray1, 0);



Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.


Your email address will not be published.