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 a dimension of "information" #37

Open
nagisa opened this issue Mar 15, 2018 · 6 comments
Open

Add a dimension of "information" #37

nagisa opened this issue Mar 15, 2018 · 6 comments

Comments

@nagisa
Copy link

nagisa commented Mar 15, 2018

A basic unit would be a bit.

@tismith
Copy link

tismith commented Jun 5, 2018

I just had a play with adding a 'information' system of units, and it can totally work. I defined a basic system with Bits and Seconds, with some constants for MB, MiB etc. This crate and the macros it provides makes that really easy to quickly implement.

However, I'm not sure this crate is the best fit - using floating point as a basis isn't really the right choice for arithmetic involving bits.

@paholg
Copy link
Owner

paholg commented Jun 5, 2018

I started adding integer support. If you point to GitHub instead of the version on crates, it's there. I haven't pushed it to crates yet as it's not as documented and tested as I would like.

Edit: See this comment for an idea of how to use them.

@droundy
Copy link
Contributor

droundy commented Jun 19, 2018

Floating point could be useful for information if you're doing something like data compression, where you can have non-integer bits per symbol.

@DrSensor
Copy link

Also, units pixel, megapixel, and px/inch along with bit, byte, kB, MB, and GB might come in handy to predefined and bundled in system of units "information".

@nagisa
Copy link
Author

nagisa commented Jul 20, 2018 via email

@wetlife
Copy link

wetlife commented Aug 1, 2018

Qbit of some energy? The lowest energy nontrivial qbit would be a bit like a binary digit.

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

6 participants