[LON-CAPA-cvs] cvs: loncom /homework/caparesponse caparesponse.pm

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 18 Oct 2004 20:28:24 -0000


albertel		Mon Oct 18 16:28:24 2004 EDT

  Modified files:              
    /loncom/homework/caparesponse	caparesponse.pm 
  Log:
  - don't format the tolerance as we use the full value, not the formatted value for figuring the tolerance
  
  
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.154 loncom/homework/caparesponse/caparesponse.pm:1.155
--- loncom/homework/caparesponse/caparesponse.pm:1.154	Thu Oct  7 16:28:30 2004
+++ loncom/homework/caparesponse/caparesponse.pm	Mon Oct 18 16:28:23 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # caparesponse definition
 #
-# $Id: caparesponse.pm,v 1.154 2004/10/07 20:28:30 albertel Exp $
+# $Id: caparesponse.pm,v 1.155 2004/10/18 20:28:23 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -327,10 +327,10 @@
 	    if ($fmt && $tag eq 'numericalresponse') {
 		$fmt=~s/e/E/g;
 		$ans = &format_number($ans,$fmt,$target,$safeeval);
-		if ($high) {
-		    $high=&format_number($high,$fmt,$target,$safeeval);
-		    $low =&format_number($low,$fmt,$target,$safeeval);
-		}
+		#if ($high) {
+		#    $high=&format_number($high,$fmt,$target,$safeeval);
+		#    $low =&format_number($low,$fmt,$target,$safeeval);
+		#}
 	    }
 	    if ($target eq 'answer') {
 		if ($high && $tag eq 'numericalresponse') { $ans.=' ['.$low.','.$high.']'; }