Re: Sum not producing zero

2008-03-12 Thread Gunnar Hjalmarsson
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

RE: Sum not producing zero

2008-03-12 Thread Thomas Bätzler
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:

Re: Sum not producing zero

2008-03-12 Thread John W. Krahn
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

RE: Sum not producing zero

2008-03-12 Thread Moon, John
:[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

Re: Sum not producing zero

2008-03-12 Thread Tom Phoenix
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