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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 18 Sep 2003 18:54:35 -0000


albertel		Thu Sep 18 14:54:35 2003 EDT

  Modified files:              
    /loncom/homework	default_homework.lcpm 
  Log:
  - fixes reopen of BUG#1874, &prettyprint(.9999,'2E'); said 1.00x10-
  
  
  
Index: loncom/homework/default_homework.lcpm
diff -u loncom/homework/default_homework.lcpm:1.64 loncom/homework/default_homework.lcpm:1.65
--- loncom/homework/default_homework.lcpm:1.64	Tue Jun 24 16:41:56 2003
+++ loncom/homework/default_homework.lcpm	Thu Sep 18 14:54:35 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.64 2003/06/24 20:41:56 albertel Exp $
+# $Id: default_homework.lcpm,v 1.65 2003/09/18 18:54:35 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -508,6 +508,8 @@
     my $exponent=$2;
     $exponent=~s/^\+0*//;
     $exponent=~s/^-0*/-/;
+    $exponent=~s/^-0*/-/;
+    if ($exponent eq '-') { undef($exponent); }
     if ($exponent) {
       if ($external::target eq 'web') {
 	$result=$frac.'&#215;10<sup>'.$exponent.'</sup>';