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

Incorrect expected value in exponent grouping test #1026

Open
kygoh opened this issue Sep 10, 2023 · 0 comments
Open

Incorrect expected value in exponent grouping test #1026

kygoh opened this issue Sep 10, 2023 · 0 comments

Comments

@kygoh
Copy link

kygoh commented Sep 10, 2023

Overview Description

According to specifications for scientific notation in UNICODE LOCALE DATA MARKUP LANGUAGE (LDML) - PART 3: NUMBERS:

The maximum number of integer digits, if present, specifies the exponent grouping. The most common use of this is to generate engineering notation, in which the exponent is a multiple of three, for example, "##0.###E0". The number 12345 is formatted using "##0.####E0" as "12.345E3".

# Exponent grouping
assert numbers.format_scientific(12345, '##0.####E0', locale='en_US') == '1.2345E4'

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

No branches or pull requests

2 participants