Skip to content

Truncated float parameter value #238

@sandcha

Description

@sandcha

Here is what I did:

I checked a parameter recently added to openfisca-france on https://legislation.fr.openfisca.org/prelevements_sociaux.reductions_cotisations_sociales.allegement_general.ensemble_des_entreprises.entreprises_de_50_salaries_et_plus?q=cotisation%20allègement%20entreprise.

Here is what I expected to happen:

To get the full parameter values as in the web API response (full response):

values:	
  2020-01-01:	0.3245 ⬅️ 😿 
  2021-01-01:	0.3246 ⬅️ 😿 
  2022-01-01:	0.3235 ⬅️ 😿 
  2023-01-01:	0.3231 ⬅️ 😿 
  2024-01-01:	0.3234 ⬅️ 😿 

Here what actually happened:

The last digit wasn't displayed on the legislation explorer interface:
Capture d’écran 2024-05-23 à 14 03 37

While the legislation explorer was displaying the same (explorer already reloaded) openfisca-france version:

$ curl -i https://api.fr.openfisca.org/latest 
HTTP/2 300 
server: nginx/1.18.0 (Ubuntu)
date: Thu, 23 May 2024 09:37:49 GMT
content-type: application/json
content-length: 104
country-package: openfisca-france
country-package-version: 166.1.0 ⬅️ ✅ 
access-control-allow-origin: *

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions