in reply to Sum to Zero?

You can avoid this, by using the printf function like this:
printf "sum=%.2f\n", $sum;

Replies are listed 'Best First'.
Re: Re: Sum to Zero?
by davorg (Chancellor) on Sep 26, 2002 at 07:55 UTC

    That's not avoiding the problem. That's hiding the problem :)

    --
    <http://www.dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

      :-)
      YEAH that's the right word :-)
      But that's how life work's, hide it if you can't change it :-)