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

Filter number converts 0 to 5,e-9.00000000 #7870

Closed
limpbrains opened this issue Jun 17, 2014 · 2 comments · Fixed by #7962
Closed

Filter number converts 0 to 5,e-9.00000000 #7870

limpbrains opened this issue Jun 17, 2014 · 2 comments · Fixed by #7962

Comments

@limpbrains
Copy link

{{ 0 | number:8 }} should return "0.00000000" but it returns "5,e-9.00000000"

started from AngularJS 1.2.17
plunker http://plnkr.co/edit/UA1a7QNpESU1fEO1LE6S?p=preview

@Narretz
Copy link
Contributor

Narretz commented Jun 17, 2014

Probably caused by 0388eed

@lgalfaso
Copy link
Contributor

Let me look into this

lgalfaso added a commit to lgalfaso/angular.js that referenced this issue Jun 17, 2014
For numbers that when converted to string do not
have an exponent, do the number rounding using string manipulation

Closes angular#7870
lgalfaso added a commit to lgalfaso/angular.js that referenced this issue Jun 17, 2014
For numbers that when converted to string do not
have an exponent, do the number rounding using string manipulation

Closes angular#7870
@lgalfaso lgalfaso self-assigned this Jun 17, 2014
IgorMinar added a commit to IgorMinar/angular.js that referenced this issue Jun 24, 2014
IgorMinar added a commit to IgorMinar/angular.js that referenced this issue Jun 24, 2014
IgorMinar added a commit that referenced this issue Jun 24, 2014
ckknight pushed a commit to ckknight/angular.js that referenced this issue Jul 16, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.