i have an array, a double array like…
Double my_array = new Double[] {6272640.0, 43560.0, 4840.0, 0.0015625, 4046856422.400000095, 40468564.223999999, 4046.856422400, 0.004046856, 1.0, 0.404685642};
and in my program i want to multiply each of that elements with some integer values…
which i accept through a variable n.
i had done it in my program as…
for(int 1=0;i<my_array.length;i++)
{
my_array[i] = n*my_array[i];
}
when i try to print the result, i gets value as exponentials…
like, 3.23E etc etc……
I need the result as double value up to 8 decimal points…
What should i do to get it
I had changed my double array to String array, like
just check it yourself. as i had just described the logic, my for loop had much more to do..