Results 1 to 2 of 2

Math Help - Divide two large numbers

  1. #1
    Newbie
    Joined
    May 2011
    Posts
    1

    Question Divide two large numbers

    I am trying to find a logic which can give me one digit (first digit on the left of decimal dot) after division.

    The ultimate goal is given below,

    number A / number B mod 2 =?

    The concern is the two numbers (A & B) are two large. Any trick can help.

    Example: 913695089923267549815145223638290430 / 70369745177664

    I am a database developer (IT Professional) and finding it difficult to do. I am not sure I chose correct forum (type) or not?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Junior Member
    Joined
    Apr 2009
    Posts
    70
    Have you tried repeated subtraction until the answer is less than B?

    count = 1
    temp(count) = A - B
    do
    count = count + 1
    temp(count) = temp(count-1) - B
    while (temp(count)>B)

    ans = temp(count-1)/B


    or sumit like that
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. law of large numbers
    Posted in the Advanced Statistics Forum
    Replies: 0
    Last Post: February 12th 2011, 11:39 AM
  2. Weak law of large numbers and CF
    Posted in the Advanced Statistics Forum
    Replies: 3
    Last Post: February 11th 2010, 11:10 AM
  3. Strong Law of Large Numbers
    Posted in the Advanced Statistics Forum
    Replies: 3
    Last Post: November 10th 2009, 11:04 PM
  4. Law of Large Numbers
    Posted in the Advanced Statistics Forum
    Replies: 1
    Last Post: August 2nd 2009, 11:53 PM
  5. The Strong Law of Large Numbers
    Posted in the Advanced Math Topics Forum
    Replies: 3
    Last Post: January 18th 2006, 01:48 PM

Search Tags


/mathhelpforum @mathhelpforum