{% if grade.is_integer() %}{{ grade | int }}{% else %}{{ grade }}{% endif %} %