Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(numberFilter): format numbers that round to zero as nonnegative #8745

Closed
wants to merge 1 commit into from
Closed

fix(numberFilter): format numbers that round to zero as nonnegative #8745

wants to merge 1 commit into from

Conversation

smilli
Copy link
Contributor

@smilli smilli commented Aug 23, 2014

Previously when a negative number was rounded to 0 by the number filter
it would be formatted as a negative number. This means something like
{{ -0.01 | number: 1 }} would output -0.0. Now it will output 0.0
instead.

Closes #8489

Previously when a negative number was rounded to 0 by the number filter
it would be formated as a negative number.  This means something like
{{ -0.01 | number: 1 }} would output -0.0.  Now it will ouput 0.0
instead.

Closes #8489
@btford
Copy link
Contributor

btford commented Sep 3, 2014

LGTM. Landed as ae952fb.

@btford btford closed this Sep 3, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When using rounding numbers that are negative and round to 0 show a negative sign
3 participants