943,668 Members | Top Members by Rank

Ad:
Aug 14th, 2008
0

How to get a quotient & a Remainder

Expand Post »
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?
Reputation Points: 10
Solved Threads: 4
Light Poster
K.Vanlalliana is offline Offline
44 posts
since Jul 2008
Aug 14th, 2008
1

Re: How to get a quotient & a Remainder

Hi,
In vb, MOD is an operator to find Remainder
Ex
VB Syntax (Toggle Plain Text)
  1. Dim iRemainder As Integer
  2.  
  3. iRemainder = 2008 MOD 10 'Here 8 is the Remainder

If you divide one number by another number you get quotient.
Reputation Points: 44
Solved Threads: 101
Posting Pro
selvaganapathy is offline Offline
547 posts
since Feb 2008
Aug 16th, 2008
0

Re: How to get a quotient & a Remainder

Hi selvaganapathy,

Thank you very much for your precious help.
Reputation Points: 10
Solved Threads: 4
Light Poster
K.Vanlalliana is offline Offline
44 posts
since Jul 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Auto generate ID Number
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Software Development





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC