deep-wood
01-24-2006, 05:19 PM
hi!
im dividing a number up, lets just say num1 = 5 and num2 = 15
answer = num2 + num1
this would give answer of 3 - alls great.
however, say num2 = 16. using that same equation gives an answer of 3.2
how would i get rid of the .2 bit to leave only 3?
would string replace work? and if so, how exactly do i do this?
thanks people
im dividing a number up, lets just say num1 = 5 and num2 = 15
answer = num2 + num1
this would give answer of 3 - alls great.
however, say num2 = 16. using that same equation gives an answer of 3.2
how would i get rid of the .2 bit to leave only 3?
would string replace work? and if so, how exactly do i do this?
thanks people