Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

displaying big integers

by Anonymous Monk
on Aug 30, 2002 at 16:17 UTC ( [id://194156]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Monks,

Newbie question here how can I (or can I?) display the decimal expansion of say:

print 2**103;

(or any quite large integer) instead of the scientific expression??

Replies are listed 'Best First'.
Re: displaying big integers
by projekt21 (Friar) on Aug 30, 2002 at 16:21 UTC
    perl -MMath::BigInt=:constant -e 'print 2**103'

    Please see Math::BigInt for more.

    alex pleiner <alex@zeitform.de>
    zeitform Internet Dienste

      Thanks alot that is great!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://194156]
Approved by tadman
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-23 07:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found