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
|
---|
In Section
Seekers of Perl Wisdom