R
rlueneberg
I am having trouble with properly formating decimal numbers.
Look:
decimal NewPrice = 0;
NewPrice = Convert.ToDecimal(Price) * Convert.ToInt32(item.Quantity);
For example, for the decimal value of 1800.00 I get the folowing
results:
without formating
1800.00
with formating
NewPrice.ToString("$#,##0.00")
$1,800.00,800.00
If I change the value to 600, it works?????
Rod
Look:
decimal NewPrice = 0;
NewPrice = Convert.ToDecimal(Price) * Convert.ToInt32(item.Quantity);
For example, for the decimal value of 1800.00 I get the folowing
results:
without formating
1800.00
with formating
NewPrice.ToString("$#,##0.00")
$1,800.00,800.00
If I change the value to 600, it works?????
Rod