how to handle large numbers

Post here if you don't find any other place for your post. But please, stay on-topic: algorithms, programming or something related to this web site and its services.

Moderator: Board moderators

Post Reply
zille
New poster
Posts: 3
Joined: Mon May 17, 2004 9:38 am

how to handle large numbers

Post by zille »

im some problems numbers are to be processed that cannot be stored in the variable with simple data types, e.g., volume 7 problem no. 748 how can these numbers be handled and processed
shamim
A great helper
Posts: 498
Joined: Mon Dec 30, 2002 10:10 am
Location: Bozeman, Montana, USA

Post by shamim »

Well you need to store the numbers in a character array. Such numbers are more popularly known as BigInt. Almost all prgrammers have their predefined BigInt functions and classes.
Alessandro
New poster
Posts: 27
Joined: Mon Jun 14, 2004 10:33 pm
Location: Latina, Italy

Post by Alessandro »

These numbers are also called BigNums. You must implement the operations all by yourself: for further information see "Programming Challenges" by Skiena-Revilla, chapter 5.
Alessandro Piva, Member of the Italian Team at the International Olimpiad in Informatics 2004
Email: alex.ander@infinito.it
Post Reply

Return to “Other words”