Skip to content

Incorrect expected value in exponent grouping test #1026

Description

@kygoh

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'

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions