currency format

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)?
 
M

Mike

I figured it out.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top