Desktop User Guides > Professional > Table scripting > Table specification syntax > Element properties > Specifying decimal places for a summary statistic element
 
Specifying decimal places for a summary statistic element
Sample Script File: DecimalPlacesOnSummaryElements.mrs
This example script is based on the Museum sample data set. See Running the sample table scripts for information on running the example scripts.
You can use the axis expression syntax to specify decimals for a summary statistic using the Decimals property, as shown in the following script:
Set Table = TableDoc.Tables.AddNew("Table02", "age{.., mean() [Decimals=1]} * gender", "Decimal places on elements")
This results in the following table:
This graphic is described in the surrounding text.
For a full list of the element types for which you can specify decimal places, see IElement_Decimals in Table Object Model reference.
See also
Element properties