- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xowf::test_item::grading::GradingRoundNone
::xowf::test_item::grading::GradingRoundNone create ... \Implements a grading with no special rounding.
[ -csv (default "$achievedPoints\t$percentage%\t$grade") ] \
[ -percentage_boundaries:required percentage_boundaries:required ] \
[ -precision (default "") ] \
[ -title (default "") ]
Defined in packages/xowf/tcl/grading-procs.tcl
Class Relations
::nx::Class create ::xowf::test_item::grading::GradingRoundNone \ -superclass ::xowf::test_item::grading::GradingMethods (to be applied on instances)
grade (scripted, public)
<instance of xowf::test_item::grading::GradingRoundNone> grade \ -achieved_points achieved_pointsReturn a numeric grade for an exam submission based with no special rounding (2 digits). On invalid data, return 0.
- Switches:
- -achieved_points (required)
- Testcases:
- No testcase defined.
if {[dict exists $achieved_points achievedPoints]} { set achieved_points [:grading_dict $achieved_points] dict with achieved_points { return [:calc_grade -percentage $percentage] } }
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables