News for hackers. Stuff that matters.
Re:Update your timezone defs: Russia abolishes winter time (... by ars on Tuesday February 08, 2011 @10:13PM (#2196096)
In that case 3 is your number. (Because it's the closest number to e, 2.71)

There is a currency based on it (with the provably least number of coins necessary to make any kind of change), ternary logic, balanced ternary is especially cool, etc.

Re:Update your timezone defs: Russia abolishes winter time (... by pavel_lishin on Wednesday February 09, 2011 @11:01AM (#2197861)
Why is being close to e a good thing?
Re:Update your timezone defs: Russia abolishes winter time (... by eru on Wednesday February 09, 2011 @03:11PM (#2199111)
Actually, the best number depends. Basically, you want to have as few operations as possible, but you also want them easy.

Having base b for number n, you need log_b n digits where each digit is an element of (0..b-1). So working on those representations takes something like f(log_b n, b) operations. Where the function f depends on the operation you are looking at.

A good base should keep f small in relation to all n.

One very natural choice for f, I can't remember which at the moment, leads to e being the best base in theory---so 3 being good in practice.

If you are working with something like trees on disk (yes, data structures are very intimately related to numbering systems---read Okasaki's Purely Functional Data Structures for more information) a very big b, i.e. branching factor in this case, like 1024 is useful: Loading a new digit/node from disk into memory takes a long time, but once it's in memory, your operations will be fast.