The type that should be used depends on the data your working with, so here turning all the grade variables into floats is fine.
The type that should be used depends on the data your working with, so here turning all the grade variables into floats is fine.