function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
balram kamboj 10balram kamboj 10 

Decimal-To-Percent in lightning Datatable

Hi all,

Having a field 'Increment' of type Number(15, 0) and storing 1.9 to it (although it will show 2 at layout , but when we fetch this field its showing 1.9)
Fetching and displaying the value 1.9 in standard datatable under "Increment" column.
 
{ label: 'Increment', fieldName: 'Increment__c', type: 'percent',typeAttributes: { minimumFractionDigits: 2, maximumFractionDigits: 2 }}



But my datatable showing value as 1,9% (comma instead of decimal) rather than 1.9% (correct decimal).

Any suggestions , how can i achieve this ?

Thanks
B
Suraj Tripathi 47Suraj Tripathi 47
Hi,

Please follow the below link:-
https://salesforce.stackexchange.com/questions/306525/how-to-show-values-with-decimals-in-lwc-standard-datatable

Please mark it as Best Answer if it helps you.

Thanks & Regards
Suraj Tripathi
balram kamboj 10balram kamboj 10

Hi Suraj

Thanks for your reply.

There is nothing related to my question in the link you mentioned.

Is there any other solution?

Thanks
B