[Discuss] Should we change default number format? #118898
Labels
discuss
Feature:FieldFormatters
impact:needs-assessment
Product and/or Engineering needs to evaluate the impact of the change.
loe:small
Small Level of Effort
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Currently our default number format, which will be used by the field formatter is
0,0.[000]
and thus will render values by default to a precision of 3 decimal points. JavaScript itself will format numbers with 7 or more decimal points in scientific notation, when converting them to a string. This will lead to a bit weird format, that values with 3 or less decimal places are get presented correctly, and places above 7 get represented better again, but not between 4 and 6 decimal digits. You can see that behavior in the following documents containing increasingly more decimal digits for that one numerical field.I wonder if we should actually change our default value of that advanced setting to
0,0.[000000]
, so that decimal points with a precision to 6 decimal digits get rendered precisely:This would though effect all places we render numbers right now using field formatters, that have not configured their own formatting pattern, thus I would like to understand how people feel around this change.
The text was updated successfully, but these errors were encountered: