MDL-47400 gradereport_history: Ensure float precision is enforced

Format floats according to the grade item config.