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

 <instance of xowf::test_item::grading::GradingRoundPercentage[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 percentage. On invalid data, return 0.

Switches:
-achieved_points (required)

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