byte-units icon indicating copy to clipboard operation
byte-units copied to clipboard

bits support

Open CMCDragonkai opened this issue 10 years ago • 6 comments

What about supporting bits?

CMCDragonkai avatar Jun 27 '14 22:06 CMCDragonkai

What kind of support do you would like for bits? Have you any API proposal?

gabrielelana avatar Jun 28 '14 10:06 gabrielelana

Same kind of conversion apis.

CMCDragonkai avatar Jun 29 '14 03:06 CMCDragonkai

@gabrielelana Maybe he meant using bits as just another unit. Example:

<?php
echo ByteUnits\Binary::bytes(1)->format('b'); // returns 8b

But that would break the principle of case-insensitivity.

Cysioland avatar Mar 09 '15 15:03 Cysioland

@Cysioland I see, well... nice :smile:

gabrielelana avatar Mar 18 '15 15:03 gabrielelana

@gabrielelana Do you have any idea, how to resolve that case insensitivity problem? Or we just say: "Screw it, bits are special case"?

Cysioland avatar Jul 13 '15 17:07 Cysioland

@Cysioland "B" for byte and "b" for bit, I don't have any problem with that, "B" and "b" are two different symbols so they could mean two different things, Case insensitivity is an abomination :smile:

gabrielelana avatar Jul 17 '15 07:07 gabrielelana