[LON-CAPA-cvs] cvs: loncom /homework/caparesponse caparesponse.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 23 Feb 2004 20:57:50 -0000
albertel Mon Feb 23 15:57:50 2004 EDT
Modified files:
/loncom/homework/caparesponse caparesponse.pm
Log:
- incorrect spec wasn't formatting the numbers
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.133 loncom/homework/caparesponse/caparesponse.pm:1.134
--- loncom/homework/caparesponse/caparesponse.pm:1.133 Fri Feb 20 13:04:43 2004
+++ loncom/homework/caparesponse/caparesponse.pm Mon Feb 23 15:57:50 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# caparesponse definition
#
-# $Id: caparesponse.pm,v 1.133 2004/02/20 18:04:43 albertel Exp $
+# $Id: caparesponse.pm,v 1.134 2004/02/23 20:57:50 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -459,6 +459,11 @@
@bubble_values=sort {$a <=> $b} (@bubble_values,$answer);
&Apache::lonxml::debug("Answer was :$answer: returning :".$#bubble_values.": whih are :".join(':',@bubble_values));
&Math::Random::random_set_seed(@oldseed);
+ if (defined($format) && $format ne '') {
+ foreach my $value (@bubble_values) {
+ $value=&format_number($value,$format,$target);
+ }
+ }
return @bubble_values;
}
if (defined($$incorrect[0]) &&