Link to home
Start Free TrialLog in
Avatar of champ_010
champ_010

asked on

Format Number for Display

How can output a double or decimal with 2 numbers after the decimal, and a comma when it's supposed to for every 3 digits?  I also don't want a $ dollar sign.  

When I so String.Format("{0:c}" ) it give the dollar sign I don't want.

When I do Math.Round(myVariable) I don't get the comma at every 3rd digit.

Is there
ASKER CERTIFIED SOLUTION
Avatar of chintan_vaishya
chintan_vaishya

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of champ_010
champ_010

ASKER

hmmm...that will display the way i want alright--by any chance is there a way to keep it an integer type so that i can still perform calculations on it?

thanks