xowf::test_item::grading::GradingRoundPoints method grade (public)

 <instance of xowf::test_item::grading::GradingRoundPoints[i]> grade \
    -achieved_points achieved_points 

Defined in packages/xowf/tcl/grading-procs.tcl

Return a numeric grade for an exam submission based on rounded points. On invalid data, return 0.

Switches:
-achieved_points (required)

Testcases:
No testcase defined.
Source code:
set achieved_points [:grading_dict $achieved_points]
dict with achieved_points {
  return [:calc_grade -points $achievedPointsRounded -achievable_points $totalPoints]
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: