+ Start a Discussion
Julien SalensonJulien Salenson 

lightning:datatable format number without digit

Hi,

I'm using a lightning:datatable in a lightning component.
My controller set a column using currency :
{label: 'My label for currency', fieldName: 'my_currency_number', 
             type: 'currency',sortable : true,
             cellAttributes: { class: { fieldName: 'showClass'}}
            },
            
Today, my problem is :
I have this result : 234,00 €

And I would like to remove digits, and I would like to have this result :
234 €

How can I do that?

Thanks for your help,
Julien