string retval;
retval = Decimal.ToInt32(1899.99M).ToString();
the output is 1899. But i want to if decimal is bigger .5 then output is 1900 else then ouput is 1899. how can i do this? thanks in advance !
Use Math.Round first.
http://msdn.microsoft.com/en-us/library/system.math.round.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With