[LON-CAPA-cvs] cvs: loncom /homework/caparesponse caparesponse.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Mon, 22 Sep 2003 13:04:56 -0000
sakharuk Mon Sep 22 09:04:56 2003 EDT
Modified files:
/loncom/homework/caparesponse caparesponse.pm
Log:
if ($number=~/^(\d*\.?\d*)(E|e)(\d*)$/) {
$format = 'e'.$2;
} elsif ...
corrected to
if ($number=~/^(\d*\.?\d*)(E|e)(\d*)$/) {
$format = 'e'.$3;
} elsif ...
Sorry for the typo.
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.109 loncom/homework/caparesponse/caparesponse.pm:1.110
--- loncom/homework/caparesponse/caparesponse.pm:1.109 Fri Sep 19 17:48:00 2003
+++ loncom/homework/caparesponse/caparesponse.pm Mon Sep 22 09:04:55 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# caparesponse definition
#
-# $Id: caparesponse.pm,v 1.109 2003/09/19 21:48:00 albertel Exp $
+# $Id: caparesponse.pm,v 1.110 2003/09/22 13:04:55 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -423,7 +423,7 @@
my $format = '';
#What is the number? (integer,decimal,floating point)
if ($number=~/^(\d*\.?\d*)(E|e)(\d*)$/) {
- $format = 'e'.$2;
+ $format = 'e'.$3;
} elsif ($number=~/^(\d*)\.(\d*)$/) {
$format = '4f';
} elsif ($number=~/^(\d*)$/) {