[ACCEPTED]-convert Decimal array to Double array-decimal
Accepted answer
double[] doubleArray = Array.ConvertAll(decimalArray, x => (double)x);
0
You also can use and extension classes similar 1 to this one
public static class ArrayExtension
{
public static double[] ToDouble(this float[] arr) =>
Array.ConvertAll(arr, x => (double)x);
}
Then:
double[] doubleArr = decimalArr.ToDouble();
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.