The SI standard says: Following the 9th CGPM (1948, Resolution 7) and the 22nd CGPM (2003, Resolution 10), for numbers with many digits the digits may be divided into groups of three by a thin space, in order to facilitate reading. Neither dots nor commas are inserted in the spaces between groups of three. However, when there are only four digits before ...


Revision 5 of that answer is what I came up with as a solution. Comments?

Only top voted, non community-wiki answers of a minimum length are eligible