DfsExtensionsToFloatArray Method (Double) |
Copies the double array into a float array.
The double values are truncated and the higher precision
of a double number is lost.
Namespace: DHI.Generic.MikeZero.DFSAssembly: DHI.Generic.MikeZero.DFS (in DHI.Generic.MikeZero.DFS.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax public static float[] ToFloatArray(
this double[] doubles
)
<ExtensionAttribute>
Public Shared Function ToFloatArray (
doubles As Double()
) As Single()
public:
[ExtensionAttribute]
static array<float>^ ToFloatArray(
array<double>^ doubles
)
[<ExtensionAttribute>]
static member ToFloatArray :
doubles : float[] -> float32[]
Parameters
- doubles
- Type: SystemDouble
Double array to copy.
Return Value
Type:
SingleFloat array with copied double values.
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