Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Giúp em xử lư số lớn với

  1. #1
    Junior Member
    Join Date
    Sep 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Giúp em xử lư số lớn với

    Em chào các bác ạ
    Em có vấn đề muốn được các bác giúp đỡ với
    Em đang làm bài tập về xử lư số lớn ( hàng ngh́n chữ số). Em t́m trên mạng thấy nói lung bung quá. Các bác pro giúp em với. Các bác có thể hướng dẫn cụ thể về giải thuật để giải quyết hiệu quả bài toán này được không ạ hoặc có bác nào biết trang nào biết trang web nào nói cụ thể về cái này chỉ em với
    Em cảm ơn các bác nhiều

  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Giúp em xử lư số lớn với

    ... Sorry, I don't speak whatever language it is you're trying to say. Could you translate that to english?

  3. #3
    Junior Member
    Join Date
    Sep 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Giúp em xử lư số lớn với

    I'm sorry!
    I need to helped about big number algorithm. I want to perform operators(+,-,*,/) on big number (million of digits)
    Can you help me!
    Thank you very much!

  4. #4
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Giúp em xử lư số lớn với

    If you're not too worried about performance, take a look at BigInteger for integer math and BigDecimal for decimal math.

  5. #5
    Junior Member
    Join Date
    Sep 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Giúp em xử lư số lớn với

    I have tried with BigInteger but it is true with number which has 20-30 digits. If my number has more than 80 digits it run very slowly and not correct. If you know about string algorithm, can you help me!
    Thank you very much!

  6. #6
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Posts
    834
    My Mood
    Cynical
    Thanks
    7
    Thanked 105 Times in 90 Posts

    Default Re: Giúp em xử lư số lớn với

    You know how to do math in your head, apply the same thing to strings

    Chris