Format Currency

I'm using  type="number" format="C2"  but that give the display of $123,456.00  Exactly what it should.  But is there a way to format it without the .00 on the end?


Thanks


8 Replies 1 reply marked as answer

SK Sujith Kumar Rajkumar Syncfusion Team March 22, 2022 07:01 AM UTC

Hi William, 
 
Greetings from Syncfusion support. 
 
You can achieve your requirement of displaying the number column with currency format and no decimals by setting the column format as – “C” as demonstrated in the below code snippet, 
 
<e-column field='Freight' format='C' width=90></e-column> 
 
More details on number formatting in Grid columns can be checked in the below help documentation link, 
 
 
Please get back to us if you require any further assistance. 
 
Regards, 
Sujith R 



WM William Morgenweck March 22, 2022 02:14 PM UTC

I still get decimals

 <e-column field="award_amount" headerText="award_amount" width="150" format="C" ></e-column>


This is the data in the JSON data

"award_amount": 1450097,


but it shows as $1,450,097.00


I would like to show  $1,450,097


Thanks





SK Sujith Kumar Rajkumar Syncfusion Team March 23, 2022 12:53 PM UTC

Hi William, 
 
Sorry for the inconvenience caused. 
 
Please set the format as – ‘C0’ for displaying currency values with no decimals in Grid column. 
 
We have also prepared a sample to demonstrate this case for your reference. You can find it below, 
 
 
Let us know if you have any concerns. 
 
Regards, 
Sujith R 


Marked as answer

RO RobertDupree October 20, 2022 03:35 PM UTC

Thanks for the link.



RS Rajapandiyan Settu Syncfusion Team October 21, 2022 04:05 AM UTC

Hi Robert,


You’re welcome.


Regards,

Rajapandiyan S



RO RobertDupree October 27, 2022 05:06 PM UTC

Thanks for the warm wishes :)



SG Suganya Gopinath Syncfusion Team October 28, 2022 05:27 AM UTC

Hi Robert,

If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.

Regards,

Suganya Gopinath.



WM William Morgenweck October 31, 2022 12:25 PM UTC

Some how this is total spam-- 


Loader.
Up arrow icon