angular-pipes icon indicating copy to clipboard operation
angular-pipes copied to clipboard

BytesPipe does not support PB or EB

Open wrobe0709 opened this issue 6 years ago • 0 comments

I'm submitting a ... (check one with "x")

[ x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

Passing in a bytes > 1 PB or passing a from unit of PB or EB will cause the pipe to fail.

Expected behavior

The pipe correctly transforms bytes to PB and EB

Minimal reproduction of the problem with instructions Call BytesPipe using 8 EB. new BytesPipe().transform(8, 2, "EB")

What is the motivation / use case for changing the behavior?

When dealing with large storage devices there are scenarios when bytes need to be translated to PB or EB.

wrobe0709 avatar May 07 '19 20:05 wrobe0709