Thread: How to handle numbers beyond long long int?

  1. #1
    Registered User
    Join Date
    Sep 2018

    How to handle numbers beyond long long int?

    How would I go about handling extremely large numbers? Is there anything out there ready-made that I could just.. copy-paste? hehe.

    Oh also if there's any "explaining", then you must do it like you would to a 5.y.o. *hat*

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    GNU Multiple Precision Arithmetic Library - Wikipedia
    Be prepared for a lot of new learning.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Dec 2017
    You could also try the C++-oriented boost multiprecision (which can actually use GMP as a backend).
    Introduction - 1.66.0
    The world hangs on a thin thread, and that is the psyche of man. - Carl Jung

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 06-07-2015, 03:28 PM
  2. Generate unsigned long long type random numbers
    By patishi in forum C Programming
    Replies: 27
    Last Post: 09-11-2013, 09:03 PM
  3. Storing numbers larger than long long
    By LyTning94 in forum C++ Programming
    Replies: 13
    Last Post: 06-01-2012, 03:31 PM
  4. Replies: 1
    Last Post: 10-11-2010, 01:53 AM
  5. How to handle long lines using GNU readline?
    By rfk in forum C Programming
    Replies: 4
    Last Post: 08-18-2008, 11:04 PM

Tags for this Thread