Post #1098415
2026-03-31 09:53 UTC
@simontatham@hachyderm.io I suppose you want a histogram of the digits to be very spiky or very flat, but I've no idea how you'd express that as an algorithm.
Replies (1)
-
@rnd@toot.cat 2026-03-31 10:04
@jim_easterbrook@mstdn.social @simontatham@hachyderm.io also wonder how it would deal with a number like 536870912, which in decimal is very flat (every digit, except 4, appears once), but is a spiky 0x20000000 in hexadecimal my solution: hexadecimal by default, with a predetermined list of "interesting" numbers that should be displayed in decimal (0, 1, 1/2/2.5/3/4/5/7.5 * powers of 10, all-nines, first digits of pi, repeating decimal digits, 12345.., 8675309, etc.)