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 positive of a number #318

Closed
lpeyr opened this issue May 7, 2022 · 0 comments · Fixed by #322
Closed

[Enhancement] Add the possibility to get the positive of a number #318

lpeyr opened this issue May 7, 2022 · 0 comments · Fixed by #322
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 May 7, 2022

Enhancement

Add the possibility to get the positive of any number.
If n is positive, return n, otherwise return -n.

Other informations

Add a method in Maths:

return n >= 0 ? n : -n;
@lpeyr lpeyr added enhancement New feature or request vNext Issues planed for the next version roadmap Feature of the roadmap labels May 7, 2022
@lpeyr lpeyr self-assigned this May 7, 2022
@lpeyr lpeyr linked a pull request May 8, 2022 that will close this issue
@lpeyr lpeyr closed this as completed in #322 May 8, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
enhancement New feature or request roadmap Feature of the roadmap vNext Issues planed for the next version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant