Round up and round Down without ceil and floor?
Some solutions without import math? https://code.sololearn.com/cheV1liq5384/?ref=app
Looks like a solution, so what is your question? It has one flaw though: it doesn't work if the number has less decimal places than specified by grade.
Interesting another solutions not based on text parsing