--- title: "How to display a Decimal value in UI" slug: "how-to-display-a-decimal-value-in-ui" updated: 2023-01-30T05:58:07Z published: 2023-01-30T05:58:07Z canonical: "help.pillir.io/how-to-display-a-decimal-value-in-ui" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.pillir.io/llms.txt > Use this file to discover all available pages before exploring further. # How to display a Decimal Precision in UI? In the EdgeReady Platform, the decimal datatype is available for data such as cost, length, volume, latitude, longitude, etc. When displaying such data in the UI, if the precisions include trailing zeros, they are not displayed in the UI. For example, if the cost of an item is calculated as 100.9, the UI should display the value as 100.90 . To display the trailing zeroes in a decimal number, use a custom function to set precision. Refer the following snippet for implementation: A function setPrecision2 is defined with input parameter as the cost variable. - Input : 100.9 - Output : 100.90 ![decimal precision](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/decimal%20precision.png)