Index: /main/waeup.kofa/trunk/src/waeup/kofa/students/reports/level_report.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/students/reports/level_report.py	(revision 14472)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/students/reports/level_report.py	(revision 14473)
@@ -56,4 +56,5 @@
         )
     table = []
+    format_float = getUtility(IKofaUtils).format_float
     for stud in result:
         if not stud['studycourse'].has_key(str(level)):
@@ -71,7 +72,9 @@
         end_level = getattr(stud['studycourse'].certificate, 'end_level', None)
         if end_level and level >= end_level:
-            cgpa = '%.2f' % (int(100*level_obj.cumulative_params[0])/100.0)
+            cgpa = format_float(level_obj.cumulative_params[0], 2)
+            #cgpa = '%.2f' % (int(100*level_obj.cumulative_params[0])/100.0)
         else:
-            cgpa = '%.3f' % (int(1000*level_obj.cumulative_params[0])/1000.0)
+            cgpa = format_float(level_obj.cumulative_params[0], 3)
+            #cgpa = '%.3f' % (int(1000*level_obj.cumulative_params[0])/1000.0)
         if remark == 'FRNS':  # Faculty Requirements Not Satisfied (AAUE)
             cgpa = ''
@@ -82,5 +85,6 @@
                 level_obj.gpa_params[1],
                 passed_params[2],
-                '%.3f' % (int(1000*level_obj.gpa)/1000.0),
+                format_float(level_obj.gpa, 3),
+                #'%.3f' % (int(1000*level_obj.gpa)/1000.0),
                 failed_courses,
                 not_taken_courses,
Index: /main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py	(revision 14472)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py	(revision 14473)
@@ -256,4 +256,5 @@
     data = []
     style = getSampleStyleSheet()
+    format_float = getUtility(IKofaUtils).format_float
     for level in levels_data:
         level_obj = level['level']
@@ -282,5 +283,7 @@
             element[2]*cm for element in tableheader], style=CONTENT_STYLE)
         data.append(table)
-        sgpa = '%s: %.2f' % (trans('Sessional GPA (rectified)', lang), level['sgpa'])
+        sgpa = format_float(level['sgpa'], 2)
+        sgpa = '%s: %s' % (trans('Sessional GPA (rectified)', lang), sgpa)
+        #sgpa = '%s: %.2f' % (trans('Sessional GPA (rectified)', lang), level['sgpa'])
         data.append(Paragraph(sgpa, style["Normal"]))
     return data
@@ -928,7 +931,8 @@
         f_label = trans(_('Cumulative GPA:'), portal_language)
         f_label = Paragraph(f_label, ENTRY1_STYLE)
-        f_text = formatted_text('%.3f (%s)' % (
-            transcript_data[1], self.getClassFromCGPA(
-                transcript_data[1], student)[1]))
+        format_float = getUtility(IKofaUtils).format_float
+        cgpa = format_float(transcript_data[1], 3)
+        f_text = formatted_text('%s (%s)' % (
+            cgpa, self.getClassFromCGPA(transcript_data[1], student)[1]))
         f_text = Paragraph(f_text, ENTRY1_STYLE)
         contextdata.append([f_label,f_text])
Index: /main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py	(revision 14472)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py	(revision 14473)
@@ -405,2 +405,7 @@
             return export_disabled_message
         return None
+
+    def format_float(self, value, prec):
+        # cut floating point value
+        value = int(pow(10, prec)*value) / (1.0*pow(10, prec))
+        return '{:{width}.{prec}f}'.format(value, width=0, prec=prec)
