[ACCEPTED]-convert Decimal array to Double array-decimal

Accepted answer
Score: 51
double[] doubleArray = Array.ConvertAll(decimalArray, x => (double)x);

0

Score: 3

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();

More Related questions