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' |
Overview Description
According to specifications for scientific notation in UNICODE LOCALE DATA MARKUP LANGUAGE (LDML) - PART 3: NUMBERS:
babel/tests/test_numbers.py
Lines 93 to 94 in 9ef53c6