Skip to content

Commit 3ca6dcc

Browse files
committed
fix floor
1 parent 87fdf76 commit 3ca6dcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openfisca_france/model/prestations/aides_logement.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class aide_logement_montant(Variable):
9696
def formula(famille, period):
9797
aide_logement_montant_brut = famille('aide_logement_montant_brut_crds', period)
9898
crds_logement = famille('crds_logement', period)
99-
montant = floor(aide_logement_montant_brut + crds_logement, 0)
99+
montant = floor(aide_logement_montant_brut + crds_logement)
100100

101101
return montant
102102

@@ -1411,7 +1411,7 @@ class crds_logement(Variable):
14111411
def formula(famille, period, parameters):
14121412
aide_logement_montant_brut = famille('aide_logement_montant_brut_crds', period)
14131413
crds = parameters(period).prelevements_sociaux.contributions_sociales.crds.taux
1414-
return floor(-aide_logement_montant_brut * crds, 2)
1414+
return floor(-aide_logement_montant_brut * crds * 100) / 100
14151415

14161416

14171417
class TypesZoneApl(Enum):

0 commit comments

Comments
 (0)