xowf::test_item::grading::Grading method calc_grade (protected)
<instance of xowf::test_item::grading::Grading> calc_grade \ [ -percentage percentage ] [ -points points ] \ [ -achievable_points achievable_points ]
Defined in packages/xowf/tcl/grading-procs.tcl
Return a numeric grade for an exam submission based on percentage and the property "percentage_mapping". On invalid data, return 0. When "-percentage" is provided, use this for calculation Otherwise calculate percentage based on "-points" (which might be custom rounded) and "-achievable_points".
- Switches:
- -percentage
(optional)- -points
(optional)- -achievable_points
(optional)- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.