You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bytes pipe should be converting using powers of two (1024 for KB, 1,048,576 for MB, etc) not powers of 10. {{ 1024 | bytes }} is returned as 1.02 KB
Bug Report
The bytes pipe should be converting using powers of two (1024 for KB, 1,048,576 for MB, etc) not powers of 10.
{{ 1024 | bytes }}
is returned as 1.02 KBScreenshots or link to CodePen/Plunker/JSfiddle
Plunker: http://plnkr.co/edit/gLMsYWq064zvaN9FOl32
What is the expected behavior?
pipe should divide by powers of two- {{ 1024 | bytes }} should equal 1 KB. 1 MB does not equal 1,000,000 bytes.
What is the motivation / use case for changing the behavior?
Conform with IEEE standards etc
Which version of Angular and Material, and which browser and OS does this issue affect?
All of them.
Did this work in previous versions of Angular / Material?
No.
The text was updated successfully, but these errors were encountered: