How to get a quotient & a Remainder

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Jul 2008
Posts: 44
Reputation: K.Vanlalliana is an unknown quantity at this point 
Solved Threads: 3
K.Vanlalliana K.Vanlalliana is offline Offline
Light Poster

How to get a quotient & a Remainder

 
0
  #1
Aug 14th, 2008
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?
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 526
Reputation: selvaganapathy is an unknown quantity at this point 
Solved Threads: 89
selvaganapathy's Avatar
selvaganapathy selvaganapathy is offline Offline
Posting Pro

Re: How to get a quotient & a Remainder

 
1
  #2
Aug 14th, 2008
Hi,
In vb, MOD is an operator to find Remainder
Ex
  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.
Selva
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 44
Reputation: K.Vanlalliana is an unknown quantity at this point 
Solved Threads: 3
K.Vanlalliana K.Vanlalliana is offline Offline
Light Poster

Re: How to get a quotient & a Remainder

 
0
  #3
Aug 16th, 2008
Hi selvaganapathy,

Thank you very much for your precious help.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 3105 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC