Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

[Enhancement] Add the possibility to get the result of a percentage decrease #325

Closed
lpeyr opened this issue Jun 4, 2022 · 0 comments · Fixed by #334
Closed

[Enhancement] Add the possibility to get the result of a percentage decrease #325

lpeyr opened this issue Jun 4, 2022 · 0 comments · Fixed by #334
Assignees
Labels
enhancement New feature or request roadmap Feature of the roadmap vNext Issues planed for the next version

Comments

@lpeyr
Copy link
Member

lpeyr commented Jun 4, 2022

Enhancement

Add the possibility to get the result of a percentage increase of a specified value.

Other informations

Let t = the percentage evolution/decrease (ex: 20%)
Let m = 1 - t

double t = 20/100;
double m = 1 - t;

// Base value
double value = 100;
double afterRaise = m * value;

// afterRaise = 120
@lpeyr lpeyr added enhancement New feature or request vNext Issues planed for the next version roadmap Feature of the roadmap labels Jun 4, 2022
@lpeyr lpeyr self-assigned this Jun 4, 2022
@lpeyr lpeyr linked a pull request Jun 5, 2022 that will close this issue
@lpeyr lpeyr closed this as completed in #334 Jun 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request roadmap Feature of the roadmap vNext Issues planed for the next version
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant