Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected output of Intl.NumberFormat#format with locale "it-IT" #57737

Closed
gabrieleborelli opened this issue Apr 3, 2025 · 1 comment
Closed

Comments

@gabrieleborelli
Copy link

Version

v20.19.0

Platform

Linux XXX x.xx.xxx.x-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

Intl.NumberFormat("it-IT").format(1234.56);

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior? Why is that the expected behavior?

The expected output is "1.234,56"

The previous node version 20.18.x formatted the number with the thousands separator.

What do you see instead?

I see the output "1234,56"

Between 20.18.x and 20.19.0 the output changed from "1.234,56" to "1234,56".

Now the thousands separator is missing.

Additional information

Adding one more digit the thousands separator is correctly showed.

So it seems the bug occurs only in the range 1000 < x < 9999

@richardlau
Copy link
Member

This is related to CLDR changes in ICU 76.1.
Refs:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants