Problem NumberFormatter with Locale

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.

Answered by DTS Engineer in 834411022

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"

You should probably raise this as a bug in the usual way. It won't really get progressed if it's only posted in these Developer Forums.

You need to raise each issue you find separately at https://feedbackassistant.apple.com/ You can post the FB numbers here if you want, so that others can link to them.

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"

We have opened ticket FB17394760.

We observed that this behavior also occurs within the system settings. Specifically, when accessing the Language & Region settings, the number formatting preview displays the number incorrectly.

Here iOS 18.4:

Here iOS 18.3.1:

Problem NumberFormatter with Locale
 
 
Q