version 1.159, 2011/06/09 15:43:56
|
version 1.160, 2011/08/03 03:14:29
|
Line 357 sub caparesponse_check_list {
|
Line 357 sub caparesponse_check_list {
|
$appendunit='%'.$appendunit; |
$appendunit='%'.$appendunit; |
} |
} |
# Zero does not need a dimension |
# Zero does not need a dimension |
if (($element==0) && ($unit!~/\w/) && ($answerunit=~/\w/)) { |
if (($element =~ /^[0\.]+$/) && ($unit!~/\w/) && ($answerunit=~/\w/)) { |
$appendunit=$answerunit; |
$appendunit=$answerunit; |
} |
} |
# Do the math for the student if allowed |
# Do the math for the student if allowed |