Why does parsing a float into array cause precision loss error. I am trying to sort data from a text file that contains text, integers and float numbers. Using the for statement causes loss of precision errors. How do I correct this please.
float y;
for (float k = 0; k < array.length; k++);
float y = Float.parseFloat( array[k] );