I want to separator in 1000 after 1, but I'm getting separator for numbers >=10000 How I'm doing it:
let formatter = NumberFormatter()
formatter.numberStyle = .decimal
formatter.string(for: myNumber)
what I'm getting:
(lldb) po formatter.string(for: 1000)
▿ Optional<String>
- some : "1000"
(lldb) po formatter.string(for: 10000)
▿ Optional<String>
- some : "10 000"
why there is no separator in 1000?