954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to get a quotient & a Remainder

If you can help by giving guide to write this using VB, I shall be very glad:

I want to get the quotient and a remainder when one number is divided by another one number, Can you please give/show me the Coding to this problem?

K.Vanlalliana
Light Poster
44 posts since Jul 2008
Reputation Points: 10
Solved Threads: 4
 

Hi,
In vb, MOD is an operator to find Remainder
Ex

Dim iRemainder As Integer

iRemainder = 2008 MOD 10              'Here 8 is the Remainder


If you divide one number by another number you get quotient.

selvaganapathy
Posting Pro
547 posts since Feb 2008
Reputation Points: 44
Solved Threads: 100
 

Hi selvaganapathy,

Thank you very much for your precious help.

K.Vanlalliana
Light Poster
44 posts since Jul 2008
Reputation Points: 10
Solved Threads: 4
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You