[LON-CAPA-cvs] cvs: loncom /homework default_homework.lcpm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 25 Sep 2003 22:57:01 -0000
albertel Thu Sep 25 18:57:01 2003 EDT
Modified files:
/loncom/homework default_homework.lcpm
Log:
- typo
Index: loncom/homework/default_homework.lcpm
diff -u loncom/homework/default_homework.lcpm:1.66 loncom/homework/default_homework.lcpm:1.67
--- loncom/homework/default_homework.lcpm:1.66 Thu Sep 25 14:48:40 2003
+++ loncom/homework/default_homework.lcpm Thu Sep 25 18:57:01 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# used by lonxml::xmlparse() as input variable $safeinit to Apache::run::run()
#
-# $Id: default_homework.lcpm,v 1.66 2003/09/25 18:48:40 albertel Exp $
+# $Id: default_homework.lcpm,v 1.67 2003/09/25 22:57:01 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -490,7 +490,7 @@
my ($value,$fmt)=@_;
my $dollarmode;
if ($fmt =~ /^\$(.*)/) { $fmt=$1; $dollarmode=1; }
- $fmt=~/e/E/g;
+ $fmt=~s/e/E/g;
my $result=sprintf('%.'.$fmt,$value);
$result=~s/(E[+-]*)0/$1/;
if ($dollarmode) {$result=&dollarmode($result);}