Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncated float parameter value #238

Open
sandcha opened this issue May 23, 2024 · 0 comments
Open

Truncated float parameter value #238

sandcha opened this issue May 23, 2024 · 0 comments

Comments

@sandcha
Copy link
Contributor

sandcha commented May 23, 2024

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: *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant