I have 4 number pickers and I concat as string the 4 numbers How I am going to convert this into long I using the following
String decimals=units2.concat(units3).concat(units4);
String units = units1;
String finalGrade = units1+decimals;
long Grade = Long.valueOf(finalGrade).longValue();
NumberFormat f = new DecimalFormat("000");
txtGrades.setText(f.format(Grade));
But I get instead of 1.234 a 1234