[EMAIL PROTECTED] wrote:

      print 37.75 - 33.67 - 4.08 ;
      <STDIN>;

I find these things all the time.  Is there a particular module I can use
to fix these things?

Take a look at Math::BigFloat, it's an arbitrary length float math package:


  #!/usr/bin/perl -wl
  use Math::BigFloat;
  $x = 37.75;
  print $x - 33.67 - 4.08;
  $x = Math::BigFloat->new('37.75');
  print $x - 33.67 - 4.08;

                    ****** CONFIDENTIALITY NOTICE ******
NOTICE:  This e-mail message and all attachments transmitted with it may
contain legally privileged and confidential information intended solely for
the use of the addressee.

OK, I won't tell anyone.


-zsdc.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to