Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with simple division

Status
Not open for further replies.

ksbigfoot

Programmer
Apr 15, 2002
856
0
0
CA
I am dividing a integer value by 2.
My integer value is 7
I know 7 / 2 = 3.5, but how do I get rid of the .5
I would like 7 / 2 = 3
When I do a Convert.ToInt32, I get 4
Could someone point me in the right direction?
Thanks
 
Sorry,
I guess I should use '\' instead of '/'
ksbigfoot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top