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

Une fonction 'arrondi_euro_voisin' plus équitable #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Numero7
Copy link

@Numero7 Numero7 commented Dec 18, 2018

Actuellement la fonction 'long arrondi_euro_voisin(double a_arrondir)' retourne 2 quand on lui passe l'argument 1.499999999999999. Pourtant dans ce cas très particulier la contribuable pourrait s'attendre à ce que l'arrondi soit 1 euro.

La modification proposée permet, dans ce cas et dans d'autres, d'arrondir de manière plus équitable.

…_euro_voisin' est rétablie: 1.499999999999999euros est arrondi à 1 euro et non pas à 2 euros comme actuellement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant