Click or drag to resize
BitConverterGetBytes Method (Single)
Returns the specified single-precision floating point value as an array of bytes.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static byte[] GetBytes(
	float value
)

Parameters

value
Type: SystemSingle
The number to convert.

Return Value

Type: Byte
An array of bytes with length 4.
See Also