Displayed Values

Hi,
I'm using a grid component table with angular and in acolum I displayed values with only one decimal after the point, but in the component show me the value with a lot of decimals although my value contains only one decimal.

I wan to to know why is doing that and how to fix it

the image with the gray background is from the grid component and the image with the withe backgraund is from de values I'm sending to display in the column



3 Replies

TS Thiyagu Subramani Syncfusion Team May 28, 2020 05:44 AM UTC

Hi Edson, 

Thanks for contacting Syncfusion forum. 

Query: Show me the value with a lot of decimals although my value contains only one decimal 
 
We can achieve your requirement by defining a required value format as N1 in column level. Please refer to the below code and sample link. 

 <e-column field='Freight' headerText='Freight' width='140' format='N1' textAlign='Right'  ></e-column> 
 



Please get back to us, if you need any further assistance. 

Regards, 
Thiyagu S. 



ER Edson Rodríguez May 28, 2020 04:05 PM UTC

Thank you, it worked


TS Thiyagu Subramani Syncfusion Team May 29, 2020 01:47 AM UTC

Hi Edson, 
We're glad to hear that your problem has been resolved. 
Please get back to us, if you need any further assistance. 
Regards, 
Thiyagu S 


Loader.
Up arrow icon