Hacker News new | ask | show | jobs
by ReidZB 1650 days ago
I find myself doing unit queries like 4 all the time. "80 bytes / second * 1 year" results in ~2.5 GB. Etc etc. It's very convenient for making sure that you're handling units correctly.

It's also really good for random facts. For example, "75 kWh at California electricity price". Or if you know something takes 20W to run continuously and you want to know how much it costs... "20 W * 1 year at california electricity price".

1 comments

There’s a fun estimation technique from Programming Pearls: pi seconds is a nano century. So, 3.14e7 seconds in a year.

    80 bytes/sec * 3.14e7 sec = 2.4e9 bytes

http://wordaligned.org/articles/pi-seconds