new numberformat.Formatter({flavor: 'short',format: 'standard'}).format(1004)
// => "1,000"
it's because flavor: 'short' applies sigfigs: 3, which rounds 1004 -> 1000. This is bad behavior though, sigfigs is useful for controlling the length of the number-string, this gives less precision without reducing the length. minSuffix already applies special behavior here, so changing its sigfigs behavior isn't really a stretch.
This is confusing behavior:
it's because
flavor: 'short'
appliessigfigs: 3
, which rounds 1004 -> 1000. This is bad behavior though, sigfigs is useful for controlling the length of the number-string, this gives less precision without reducing the length.minSuffix
already applies special behavior here, so changing itssigfigs
behavior isn't really a stretch.from https://www.reddit.com/message/messages/8famth