Function getDefaultDecimals
getDefaultDecimals( column: { type: string; typeVariableValues?: readonly number[] }, options?: { hasFractionalValues?: boolean },): number Parameters
- column: { type: string; typeVariableValues?: readonly number[] }
Optionaloptions: { hasFractionalValues?: boolean }
Returns number
Returns the default number of decimals to display for a numeric column: none for integers, the scale for
Numeric(precision, scale), 2 otherwise.NOTE: when the displayed values are aggregated values which can be fractional, e.g. the average of integers, at least 2 decimals are displayed.