We have identified an issue when using NumberFormatter with the locale set to it_IT. Specifically, when formatting numbers with exactly four integer digits, the grouping separator is not applied: for example, the number is displayed as 4000,00 instead of the expected 4.000,00. This behavior occurs only with four-digit integers; for instance, 40.000,00 is formatted correctly. The issue appears to affect only iOS 18.4 and later versions.
It’s certainly fine to file a bug about this, but I wouldn’t be surprised if it came back as ‘behaves correctly’. Some regions have some wacky rules when it comes to formatter, and the behaviour you’ve described — with special rules for the first group separator — seems like something I’ve seen before.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"