currency format

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

I have to format a number in currency format but I don't want the decimals.

I want it to look like

$4545

and not

$4545.60

I have this for my format:
dr["GrossExpense"] = Convert.ToInt32(GrossAmount).ToString("c");

but its displaying as $4545.60. How can I get it to show without the
decimals (.60)?
 
I figured it out.

I have to use
dr["GrossExpense"] = Convert.ToInt32(GrossAmount).ToString("c0");
 
Back
Top