package com.lieverandiver.thesisproject.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.lieverandiver.thesisproject.R;
import com.remswork.project.alice.model.Grade;

import java.util.List;

public class GradeAdapter2 extends RecyclerView.Adapter<GradeAdapter2.GradeViewHolder> {

    private Context context;
    private List<Grade> gradeList;
    private LayoutInflater layoutInflater;

    public GradeAdapter2(Context context, List<Grade> gradeList, long termId) {
        this.gradeList = gradeList;
        this.context = context;
        layoutInflater = LayoutInflater.from(context);
    }

    @Override
    public GradeViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = layoutInflater.inflate(R.layout.activity_all_total_grade_cardview, parent, false);
        return new GradeViewHolder(view);
    }

    @Override
    public void onBindViewHolder(GradeViewHolder holder, int position) {
        holder.setView(gradeList.get(position), position);
    }

    @Override
    public int getItemCount() {
        return gradeList.size();
    }

    class GradeViewHolder extends RecyclerView.ViewHolder {

        private TextView txtGrdScore;
        private TextView txName;
        private TextView txDate;

        public GradeViewHolder(View itemView) {
            super(itemView);
            txtGrdScore = (TextView) itemView.findViewById(R.id.grade_score_part);
            txName = (TextView) itemView.findViewById(R.id.grade_studentname);
            txDate = (TextView) itemView.findViewById(R.id.grade_update_date);
        }

        public void setView(final Grade grade, final int position) {
            String name = String.format("%s, %s %s", grade.getStudent().getLastName(),
                    grade.getStudent().getFirstName(),
                    grade.getStudent().getMiddleName().substring(0, 1)) + ".";
            txName.setText(name);
            txtGrdScore.setText(grade.getTotalScore() + "");
        }

        public void setScore(double score) {
            txtGrdScore.setText(score + "");
        }

    }
}

@@ -354,17 +354,105 @@
 ava.
-util.List
+math.RoundingMode;%0Aimport java.text.DecimalFormat;%0Aimport java.util.List;%0Aimport java.util.Locale
 ;%0A%0Ap
@@ -2144,88 +2144,283 @@
     
-txName.setText(name);%0A            txtGrdScore.setText(grade.getTotalScore() + %22%22
+DecimalFormat format = new DecimalFormat(%22.##%22);%0A            format.setRoundingMode(RoundingMode.UP);%0A            String score = String.format(Locale.ENGLISH, %22%25s%22, format.format(grade.getTotalScore()));%0A            txName.setText(name);%0A            txtGrdScore.setText(score
 );%0A 

Add a format on displaying the grades.