Change grade from float to double