I have only started programming in VB recently and I am not very good on the coding side. Could somebody help me with the following problem?
I have two values a and b. When I divide them, I want only the integer part to show up ignoring all the decimals and storing it into the variable c
ie
a = 24, b = 11
c = 2
output: 2
Based on your comment, here’s how you could do it if a and b were strings:
And if c has to be a string…
I’m more of a C# person, so there may be an easier way.
UPDATE To handle rounding, you could do it this way: