[LON-CAPA-cvs] cvs: loncom /interface lonquickgrades.pm

raeburn raeburn at source.lon-capa.org
Wed Aug 6 15:01:23 EDT 2025


raeburn		Wed Aug  6 19:01:23 2025 EDT

  Modified files:              
    /loncom/interface	lonquickgrades.pm 
  Log:
  - Points and Totals shown with a maximum of three decimal places. 
  
  
Index: loncom/interface/lonquickgrades.pm
diff -u loncom/interface/lonquickgrades.pm:1.129 loncom/interface/lonquickgrades.pm:1.130
--- loncom/interface/lonquickgrades.pm:1.129	Sat Jun 28 14:34:46 2025
+++ loncom/interface/lonquickgrades.pm	Wed Aug  6 19:01:23 2025
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Quick Student Grades Display
 #
-# $Id: lonquickgrades.pm,v 1.129 2025/06/28 14:34:46 raeburn Exp $
+# $Id: lonquickgrades.pm,v 1.130 2025/08/06 19:01:23 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -737,7 +737,8 @@
 		    $r->print('<td valign="top">'
                              .$thisIndent
                              .'<span class="LC_nobreak">'
-                             .$correct.' / '.$attempted.($notshowTotals?'':' / '.$total)
+                             .&numberout($correct).' / '.$attempted
+                             .($notshowTotals?'':' / '.&numberout($total))
                              .'</span></td>'
                              .&Apache::loncommon::end_data_table_row()
                     );
@@ -745,7 +746,8 @@
 		    $r->print('<td valign="top">'
                              .$thisIndent
                              .'<span class="LC_nobreak">'
-                             .$correct.($notshowTotals?'':' / '.$total)
+                             .&numberout($correct)
+                             .($notshowTotals?'':' / '.&numberout($total))
                              .'</span></td>'
                              .&Apache::loncommon::end_data_table_row());
 		}
@@ -762,7 +764,8 @@
         $r->print(&Apache::loncommon::start_data_table_row()
                  .'<td style="background-color:'.$color.';">');
         $r->print(&mt("Problems Not Contained In A Folder")."</td><td>");
-        $r->print("$topLevelRight / $topLevelParts</td>"
+        $r->print(&numberout($topLevelRight).' / '
+                 .&numberout($topLevelParts).'</td>'
                  .&Apache::loncommon::end_data_table_row());
     }
 
@@ -776,10 +779,13 @@
             $title = $showPoints ? "Points" : "Parts Done";
             my $totaltitle = $showPoints ? &mt("Awarded Total Points") : &mt("Total Parts Done");
             $r->print(&Apache::loncommon::start_data_table_row()
-                     .'<td colspan="2" align="right">'.$totaltitle.': <b>'.$totalRight.'</b><br />');
-            $r->print(&mt('Max Possible To Date')." $maxHelpLink: <b>$totalPossible</b><br />");
+                     .'<td colspan="2" align="right">'.$totaltitle
+                     .': <b>'.&numberout($totalRight).'</b><br />');
+            $r->print(&mt('Max Possible To Date')." $maxHelpLink: <b>"
+                     .&numberout($totalPossible)."</b><br />");
             $title = $showPoints ? "Points" : "Parts";
-            $r->print(&mt("Total $title In Course").': <b>'.$totalParts.'</b></td>'
+            $r->print(&mt("Total $title In Course")
+                     .': <b>'.&numberout($totalParts).'</b></td>'
                      .&Apache::loncommon::end_data_table_row());
         }
     }




More information about the LON-CAPA-cvs mailing list