you are viewing a single comment's thread
view the rest of the comments
[–] 5 points 2 weeks ago

The repeated division trick has a quicker counterpart, which is to create a separate variable and repeatedly multiply that by 10, comparing to the original as it goes. Probably not as fast as anything beyond the repeated division trick, but I mention it because its rediscovery was likely missed by jumping right to clzl tricks.

It also generalises a lot more readily to numbers in other bases. Kind of a "jack of all trades, master of none" solution.

  • source