Convert to int

code
activities

#1

Hi There!
could you help me please?

I need to convert to int a generic value …

image


#2

Have you tried Cint() yet?


#3

thank you, yes, I was doing something wrong … now is working fine …

finally I use … cint((valor.ToString.Replace(",0000","")).Replace(".","")) I dont know if exists another form but that is working


#4

for clarification. if your number has decimal in it then the compiler might think it is a real number, not integer, which cannot cast into Int.