Ignore:
Timestamp:
5 Sep 2013, 10:15:59 (11 years ago)
Author:
Henrik Bettermann
Message:

Add one more decimal place to level gpa.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py

    r10582 r10586  
    116116                weighted_credits += ticket.credits * ticket.weight
    117117        if credits_counted:
    118             level_gpa = round(weighted_credits/credits_counted, 2)
     118            level_gpa = round(weighted_credits/credits_counted, 3)
    119119        return level_gpa, credits_counted, weighted_credits
    120120
     
    129129                weighted_credits += ticket.credits * ticket.weight
    130130        if credits_counted:
    131             level_gpa = round(weighted_credits/credits_counted, 2)
     131            level_gpa = round(weighted_credits/credits_counted, 3)
    132132        return level_gpa, credits_counted, weighted_credits
    133133
Note: See TracChangeset for help on using the changeset viewer.