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

Prefix name reorg #1

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Prefix name reorg #1

wants to merge 2 commits into from

Conversation

alexvandesande
Copy link
Owner

Every other week someone comes to us and ask why we don’t stick to SI units. Sure, no one remembers which is supposed to be babbage, but what’s the deal with Kwei with a uppercase K, kilo doesn’t start with uppercase! Why are unit names written in full but prefixes just the letter? It’s not Mbyte or mliter, it’s either the Megabyte or the ml. And grand, really? It’s not a SI unit it’s a number.

I always say that unit names are just suggestions and we should only use ether and wei, but in practice that doesn’t work.

Most things are in ether. Gas prices are usually in finney or szabo. Basic functions are in wei.

Then it dawns on me that the only that actually matter are ether, finney and szabo, and they have a direct 1000 relationship. Here’s a nice mnemonic: they’re the micro and the mili. A Finney is a mili-ether, szabo is the micro-ether. Ether, mili, micro. Now I usually don’t memorize the micro but since I’m having to remember the szabo anyway, why not the micro-?

So I did some cosmetic changes, made the comments clearer on this, and added support for SI prefixes femto-, pico-, nano-, micro- and mili-

Just giving developers more choice, since so many of them asked for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant