[LON-CAPA-cvs] cvs: loncom /homework default_homework.lcpm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 25 Sep 2003 18:48:41 -0000
albertel Thu Sep 25 14:48:41 2003 EDT
Modified files:
/loncom/homework default_homework.lcpm
Log:
- eliminating little e some more
Index: loncom/homework/default_homework.lcpm
diff -u loncom/homework/default_homework.lcpm:1.65 loncom/homework/default_homework.lcpm:1.66
--- loncom/homework/default_homework.lcpm:1.65 Thu Sep 18 14:54:35 2003
+++ loncom/homework/default_homework.lcpm Thu Sep 25 14:48:40 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.65 2003/09/18 18:54:35 albertel Exp $
+# $Id: default_homework.lcpm,v 1.66 2003/09/25 18:48:40 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -490,6 +490,7 @@
my ($value,$fmt)=@_;
my $dollarmode;
if ($fmt =~ /^\$(.*)/) { $fmt=$1; $dollarmode=1; }
+ $fmt=~/e/E/g;
my $result=sprintf('%.'.$fmt,$value);
$result=~s/(E[+-]*)0/$1/;
if ($dollarmode) {$result=&dollarmode($result);}