Do the enhanced loop work with double? I get a loss of precision in the for loop at "double count". What can I change to make it work or do I just have to use for loop instead of enhanced? Thanks
double []x1 = new double[21]; double increment = 0.1; double start = 1.00; for(double count:x1) { x1[count] = (start - increment); start = x1[count]; }