[LON-CAPA-cvs] cvs: loncom /lti ltiutils.pm

raeburn raeburn at source.lon-capa.org
Mon Feb 26 22:55:55 EST 2024


raeburn		Tue Feb 27 03:55:55 2024 EDT

  Modified files:              
    /loncom/lti	ltiutils.pm 
  Log:
  - When scoretype is decimal, send value with 4 decimal places, i.e., a
    number between 0.0000 and 1.0000
  
  
Index: loncom/lti/ltiutils.pm
diff -u loncom/lti/ltiutils.pm:1.19 loncom/lti/ltiutils.pm:1.20
--- loncom/lti/ltiutils.pm:1.19	Fri Jun  2 01:20:28 2023
+++ loncom/lti/ltiutils.pm	Tue Feb 27 03:55:55 2024
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Utility functions for managing LON-CAPA LTI interactions 
 #
-# $Id: ltiutils.pm,v 1.19 2023/06/02 01:20:28 raeburn Exp $
+# $Id: ltiutils.pm,v 1.20 2024/02/27 03:55:55 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -752,7 +752,7 @@
             $score = Math::Round::round($score);
         } else {
             $score = $total/$possible;
-            $score = sprintf("%.2f",$score);
+            $score = sprintf("%.4f",$score);
         }
     }
     if ($sigmethod eq '') {




More information about the LON-CAPA-cvs mailing list