how do we print a number that’s greater than 2^32-1 with int and float? (is it even possible?)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
How does your variable contain a number that is greater than 2^32 – 1? Short answer: It’ll probably be a specific data-structure and assorted functions (oh, a class?) that deal with this.
Given this data structure, how do we print it? With
BigInteger_Print(BigInteger*)of course 🙂Really though, there is no correct answer to this, as printing a number larger than 2^32-1 depends entirely upon how you’re storing that number.