DfsExtensionsToFloatArray Method (Double, Single) |
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 void ToFloatArray(
this double[] doubles,
float[] floats
)
<ExtensionAttribute>
Public Shared Sub ToFloatArray (
doubles As Double(),
floats As Single()
)
public:
[ExtensionAttribute]
static void ToFloatArray(
array<double>^ doubles,
array<float>^ floats
)
[<ExtensionAttribute>]
static member ToFloatArray :
doubles : float[] *
floats : float32[] -> unit
Parameters
- doubles
- Type: SystemDouble
Double array to copy. - floats
- Type: SystemSingle
Float 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