How to Handle Huge Numbers in PERL?

AI Thread Summary
Handling large numbers exceeding 15 digits in Perl can be effectively managed using the Math::BigInt module, which supports arbitrary size integer math. For numbers with 10,000 digits or more, Math::BigInt is suitable as it allows for calculations without losing precision. Users can refer to the official documentation for detailed guidance on implementing this module in their Perl scripts. The discussion emphasizes the importance of utilizing Math::BigInt for operations involving extremely large integers to ensure accurate results.
karthik3k
Messages
149
Reaction score
0
How shall i handle with HUGE Numbers say more than 15 digits in PERL ?
 
Technology news on Phys.org
Try looking for information for BigInt. I think it is in the math package.

use Math::BigInt
 
No i want for a number of say 10000 digits or more. How will i do that??
 
What do you mean no.

"Math::BigInt - Arbitrary size integer math package"

http://www.perldoc.com/perl5.6/lib/Math/BigInt.html
 
Last edited by a moderator:
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Back
Top