Click or drag to resize

ExtensionsConvertionsToFloat Method (Byte)

Returns a single-precision floating point number converted from four bytes at a specified position in a byte array.

Namespace:  Cauldron
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static float ToFloat(
	this byte[] target
)

Parameters

target
Type: SystemByte
The byte array to convert

Return Value

Type: Single
The single-precision floating point number representaion of the byte array

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also