Click here to Skip to main content
16,020,990 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends,
Please help me to convert a decimal value to integer value
Posted

Use Convert :
C#
int i = Convert.ToInt32(decimalvalue);
 
Share this answer
 
Comments
koolprasad2003 21-Sep-11 2:49am    
easy way to convert it to int. My 5!
C#
int i = 0;
int.TryParse(decimalvalue, out i);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900