This makes it easier to read large numbers, e.g. 1,432,678,321.
Without additional arguments number_format will use commas for thousand separates, if you think this may confuse people who run macOS with a different locale setting then I suggest using a thin space (U+2009) as a workaround for (presumably) being unable to get the system’s configured thousand separator.
I was considering also running the suggestion through number_format, e.g. writing currency 50000 D will show 50000 DKK which I would like to see as 50,000 DKK, but that requires a bit of refactoring, as the suggestion is returned from a helper function and used both as title and what is inserted for auto-completion.
This makes it easier to read large numbers, e.g.
1,432,678,321
.Without additional arguments
number_format
will use commas for thousand separates, if you think this may confuse people who run macOS with a different locale setting then I suggest using a thin space (U+2009) as a workaround for (presumably) being unable to get the system’s configured thousand separator.I was considering also running the suggestion through
number_format
, e.g. writingcurrency 50000 D
will show50000 DKK
which I would like to see as50,000 DKK
, but that requires a bit of refactoring, as the suggestion is returned from a helper function and used both as title and what is inserted for auto-completion.