WeBWorK Problems

Weighted Grader and Radio Buttons

Re: Weighted Grader and Radio Buttons

by Cindy Loten -
Number of replies: 0
[@ WEIGHTED_ANS( $radio->cmp(), $button_mark ); $radio->buttons @]*
fixed my problem! Thanks for the quick answer and the explanation for where the 0 even came from.
I had noticed the rounding error, and it was next on my list of things to sort out.

I had the values $button_mark, $entries, and $button_pc as the actual questions I coded had truth tables numerous entries. This just made it easier for coding lots of problems with similar structures.