Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for units of measurement, Data Transfer Rate #39

Open
17 tasks
jordanbrauer opened this issue Oct 12, 2017 · 0 comments
Open
17 tasks

Add support for units of measurement, Data Transfer Rate #39

jordanbrauer opened this issue Oct 12, 2017 · 0 comments

Comments

@jordanbrauer
Copy link
Owner

jordanbrauer commented Oct 12, 2017

Data Transfer Rate

namespace UnitConverter\Unit\DataTransferRate

  • The abstract DataTransferRateUnit class exists for all subsequent data transfer rate units to extend from.
    • It declares the protected property $baseUnit as BitPerSecond::class.
    • It declares the protected property $unitOf as Measure::DATA_TRANSFER_RATE.

Bit Transfer Rate Units (Decimal)

  • bit per second (bit/s) = 1
  • kilobit per second (kbit/s) = 1000
  • megabit per second (Mbit/s) = 1000000
  • gigabit per second (Gbit/s) = 1000000000
  • terabit per second (Tbit/s) = 1000000000000

Bit Transfer Rate Units (Binary)

  • kibibit per second (Kibit/s) = 1024
  • mebibit per second (Mibit/s) = 1049000
  • gibibit per second (Gibit/s) = 1074000000
  • tebibit per second (Tibit/s) = 1100000000000

Byte Transfer Rate Units (Decimal)

  • byte per second (B/s) = 8
  • kilobyte per second (kB/s) = 8000
  • megabyte per second (MB/s) = 8000000
  • gigabyte per second (GB/s) = 8000000000
  • terabyte per second (TB/s) = 8000000000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant