Skip to main content

Binary unit conversion tool

Project description

A dead simple binary unit conversion tool.

Usage

Hereinafter are few examples of how to use this tool.

Converting between two units

echo "1024" | bunit --in=kiB --out=MiB
1.0
echo "128" | bunit --in=b --out=B
16

Converting between units of the same system

echo "32" | bunit --in=GiB
+------+-------------+
| Unit |    Value    |
+------+-------------+
| kiB  | 33554432.00 |
| MiB  |   32768.00  |
| GiB  |    32.00    |
| TiB  |     0.03    |
| PiB  |     0.00    |
| EiB  |     0.00    |
| ZiB  |     0.00    |
| YiB  |     0.00    |
+------+-------------+

Converting between units of different systems

echo "1" | bunit --in=GiB --system=bytes
+------+---------------+
| Unit |     Value     |
+------+---------------+
|  B   | 1073741824.00 |
|  kB  |   1073741.82  |
|  MB  |    1073.74    |
|  GB  |      1.07     |
|  TB  |      0.00     |
|  PB  |      0.00     |
|  EB  |      0.00     |
|  ZB  |      0.00     |
|  YB  |      0.00     |
+------+---------------+

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bunit-0.1.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file bunit-0.1.tar.gz.

File metadata

  • Download URL: bunit-0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bunit-0.1.tar.gz
Algorithm Hash digest
SHA256 2b3127dea9bd7cb1746cdfcf612511cb08ef7e3a7899501fbef9eb4f682048b6
MD5 b8dd1a57527d6a0cb1a5287c0c06c412
BLAKE2b-256 1feced66e329b1e99e937aa55c41ec18092af9cca5e86a13e631b639e6679a46

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page