Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: ** operator in perl

by poolpi (Hermit)
on Feb 03, 2009 at 09:20 UTC ( #740929=note: print w/ replies, xml ) Need Help??


in reply to ** operator in perl

This core module may help you : Math::BigInt

#!/usr/bin/perl use strict; use warnings; use Math::BigInt lib => 'GMP'; # (((-2)**4)+1) my $x = Math::BigInt->new('-2'); print $x->bpow(4)->badd(1)->bstr(); __END__ Output: 17


hth,
PooLpi

'Ebry haffa hoe hab im tik a bush'. Jamaican proverb


Comment on Re: ** operator in perl
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://740929]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2014-07-22 07:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (106 votes), past polls