Moon, John wrote:
Below is a small script and results... Can someone example what I am
doing wrong - the sum should produce zero but does not.
code snipped
First, you run your code without having enabled strictures and warnings.
Second, you probably want to study the FAQ entry perldoc -q
Hi,
Below is a small script and results... Can someone example
what I am doing wrong - the sum should produce zero but does not.
Don't use floating point math for accounting - convert your
money sums to cents first and use these for calculation.
HTH,
Thomas
--
To unsubscribe, e-mail:
Moon, John wrote:
Below is a small script and results... Can someone example what I am
doing wrong - the sum should produce zero but does not.
http://perlmonks.org/?node_id=665673
perldoc -q
perldoc perlnumber
John
--
Perl isn't a toolbox, but a small machine shop where you
can
:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2008 9:05 AM
To: Perl Beginners
Subject: Re: Sum not producing zero
Moon, John wrote:
Below is a small script and results... Can someone example what I am
doing wrong - the sum should produce zero but does not.
http://perlmonks.org/?node_id=665673
column of these
formatted values?
-Original Message-
Hey! If I'd known you were posting upside down, I would have stood on
my head to read your message. Good thing you didn't say anything
important. Except
Subject: Re: Sum not producing zero
Oh, right. Hey, if using this subroutine