How to Handle Huge Numbers in PERL?

Click For Summary

Discussion Overview

The discussion focuses on handling very large numbers in Perl, specifically numbers exceeding 15 digits, and explores the capabilities of the Math::BigInt module for arbitrary size integer mathematics.

Discussion Character

  • Technical explanation, Debate/contested

Main Points Raised

  • One participant inquires about handling huge numbers in Perl, specifically those greater than 15 digits.
  • Another participant suggests using the Math::BigInt module, indicating it is part of the math package.
  • A different participant clarifies that they are interested in handling numbers with 10,000 digits or more, questioning the adequacy of the previous suggestion.
  • In response, a participant emphasizes that Math::BigInt is designed for arbitrary size integer math, providing a link to the documentation for further reference.

Areas of Agreement / Disagreement

There is no consensus on the sufficiency of Math::BigInt for extremely large numbers, as one participant expresses doubt regarding its capability for numbers with 10,000 digits or more.

Contextual Notes

The discussion does not clarify the limitations of Math::BigInt or any specific assumptions regarding its performance with extremely large integers.

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:

Similar threads

  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
14
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
19
Views
3K