Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://740929]
help
Chatterbox?
and God said, "Let Newton be!"...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2017-11-17 18:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (270 votes). Check out past polls.

    Notices?