[LON-CAPA-cvs] cvs: loncom /homework default_homework.lcpm

ng lon-capa-cvs@mail.lon-capa.org
Thu, 23 Oct 2003 13:56:07 -0000


ng		Thu Oct 23 09:56:07 2003 EDT

  Modified files:              
    /loncom/homework	default_homework.lcpm 
  Log:
  Allows 'e' as well as 'E' in prettyprint so that it is consistent with format routine.
  
  
  
Index: loncom/homework/default_homework.lcpm
diff -u loncom/homework/default_homework.lcpm:1.67 loncom/homework/default_homework.lcpm:1.68
--- loncom/homework/default_homework.lcpm:1.67	Thu Sep 25 18:57:01 2003
+++ loncom/homework/default_homework.lcpm	Thu Oct 23 09:56:07 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.67 2003/09/25 22:57:01 albertel Exp $
+# $Id: default_homework.lcpm,v 1.68 2003/10/23 13:56:07 ng Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -503,7 +503,7 @@
   my $dollarmode;
   if ($fmt =~ /^\$(.*)/) { $fmt=$1; $dollarmode=1; } 
   if ($fmt) { $value=sprintf('%.'.$fmt,$value); }
-  if ($value =~ /([0-9\.\-\+]+)E([0-9\-\+]+)/ ) {
+  if ($value =~ /([0-9\.\-\+]+)E([0-9\-\+]+)/i ) {
     my $frac=$1;
     if ($dollarmode) { $frac=&dollarformat($frac); }
     my $exponent=$2;