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 percentage evolution that cancel itself #326

Closed
lpeyr opened this issue Jun 4, 2022 · 0 comments · Fixed by #334
Closed
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 percentage evolution that cancel itself.
For instance, if we have a value that increases by 10%, the following method would return the percentage to get bakc to the original value.

Other informations

Formula

// Base values
double t = 10d/100d;
double m = 1d + t;

// Increase (or decrease)
double v = 100;
double vAfter = m * v;

// Get back
double v2 = (1 / m) * vAfter;
@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