----- Original Message -----
From: "Rob Dixon"
I need to convert the result of an aritmetic operation on 2
bignum into a "normal" float (ie double)
I suggest you convert the values to strings, which will force them to be
converted to normal floats before the arithmetic is done.
no bignum ;
my $res = $A->bstr - $B->bstr;
Bear in mind that $res will then hold a "long double" (not "double") iff
perl was built to use long doubles. (Check 'perl -V:nvsize'.)
Cheers,
Rob
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/