currency formatting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,
i have a currency value in the form of a string:

double salary;

i'm binding to formview with the following format:

Eval("$AvgIndianSalary", "{0:$ #,#.##")

but when the value is 0 nothing but the dollar sign appears. how can i make
it where it looks like the following:

$0.00 or $0

thanks,
rodchar
 
rodchar,

I believe you can do this:

Eval("$AvgIndianSalary", "{0:$ #,0.00}")
 

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

Back
Top