by silentmatt · 15y ago · 0 comments
Of course, it would be more efficient to use a power of two, but using a power of 10 makes converting back and forth between strings (in decimal) quite a bit faster. In my original use case that was a large factor, so it's what I went with.
Of course you can also multiply 32 x 32 -> 64 bits in Javascript. But of course you need more than one operation to do it.