Код: Выделить всё
if (fifth < 100 && fifth >= 96.5)
fivet.setText("1.00");
else if (fifth < 97 && fifth >= 92.5)
fivet.setText("1.25");
else if (fifth < 93 && fifth >= 88.5)
fivet.setText("1.50");
else if (fifth < 89 && fifth >= 84.5)
fivet.setText("1.75");
else if (fifth < 85 && fifth >= 81.5)
fivet.setText("2.00");
else if (fifth < 82 && fifth >= 78.5)
fivet.setText("2.25");
else if (fifth < 79 && fifth >= 75.5)
fivet.setText("2.50");
else if (fifth < 76 && fifth >= 72.5)
fivet.setText("2.75");
else if (fifth < 73 && fifth >= 69.5)
fivet.setText("3.00");
else if (fifth < 70 && fifth >= 0)
fivet.setText("5.00");
else
fivet.setText("NE");
Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/783 ... ng-if-else