version 1.154, 2004/10/07 20:28:30
|
version 1.155, 2004/10/18 20:28:23
|
Line 327 sub end_numericalresponse {
|
Line 327 sub end_numericalresponse {
|
if ($fmt && $tag eq 'numericalresponse') { |
if ($fmt && $tag eq 'numericalresponse') { |
$fmt=~s/e/E/g; |
$fmt=~s/e/E/g; |
$ans = &format_number($ans,$fmt,$target,$safeeval); |
$ans = &format_number($ans,$fmt,$target,$safeeval); |
if ($high) { |
#if ($high) { |
$high=&format_number($high,$fmt,$target,$safeeval); |
# $high=&format_number($high,$fmt,$target,$safeeval); |
$low =&format_number($low,$fmt,$target,$safeeval); |
# $low =&format_number($low,$fmt,$target,$safeeval); |
} |
#} |
} |
} |
if ($target eq 'answer') { |
if ($target eq 'answer') { |
if ($high && $tag eq 'numericalresponse') { $ans.=' ['.$low.','.$high.']'; } |
if ($high && $tag eq 'numericalresponse') { $ans.=' ['.$low.','.$high.']'; } |