develooper Front page | perl.beginners | Postings from June 2011

bignum t float

Thread Next
From:
Patrick Dupre
Date:
June 19, 2011 06:08
Subject:
bignum t float
Message ID:
Pine.SOC.4.63.1106191404400.4977@unix0.york.ac.uk
Hello,

I need to convert the result of an aritmetic operation on 2
bignum into a "normal" float (ie double)

I did not find a way to do this.
no bignum ;
my $res = $A - $B ;

gives me always a bignum ($res) if $A and $B are bignum.

Thank.

-- 
---
==========================================================================
  Patrick DUPRÉ                      |   |
  Department of Chemistry            |   |  Phone: (44)-(0)-1904-434384
  The University of York             |   |  Fax:   (44)-(0)-1904-432516
  Heslington                         |   |
  York YO10 5DD  United Kingdom      |   |  email: patrick.dupre@york.ac.uk
==========================================================================

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About