babel icon indicating copy to clipboard operation
babel copied to clipboard

Incorrect expected value in exponent grouping test

Open kygoh opened this issue 2 years ago • 0 comments

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".

https://github.com/python-babel/babel/blob/9ef53c6a6ab5fc604b58ccb19dc63ebcf8edd28b/tests/test_numbers.py#L93-L94

kygoh avatar Sep 10 '23 00:09 kygoh