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

Options to show sign(+) for positiv numbers #76

Closed
MaximilianFranke opened this issue Oct 1, 2019 · 2 comments
Closed

Options to show sign(+) for positiv numbers #76

MaximilianFranke opened this issue Oct 1, 2019 · 2 comments

Comments

@MaximilianFranke
Copy link

It would be nice to have a option that adds a + symbol to positv numbers like:
+1.245,35€

It would be helpfull to format amount changes.

@freearhey
Copy link
Owner

But isn’t it easier to add a plus sign when displaying the price on the screen, like this:

<span>+{{ price | currency('€') }}</span>

or am I misunderstood?

@freearhey freearhey reopened this Oct 13, 2019
@MaximilianFranke
Copy link
Author

MaximilianFranke commented Oct 14, 2019

But with an negative amount this would display: +-1.245,35€
Sure i can add a conditional + sign but for me this would be nice to have it as option in the filter.
Like:
<span>{{ 1245,35 | currency('€', {showAddSign: true}) }}</span>
Result: +1.245,35€

But:
<span>{{ -1245,35 | currency('€', {showAddSign: true}) }}</span>
Should be still : -1.245,35€

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

2 participants