I have now
double numba = 5212.6312 String.Format("{0:C}", Convert.ToInt32(numba) )
It will give me
$5,213.00
but I do not want ".00".
I know that I can simply discard the last three characters of the string each time to achieve the effect, but there seems to be an easier way.
c # formatting rounding currency
spilliton May 20, '09 at 20:35 2009-05-20 20:35
source share