Re: Floating point errors in Perl

2002-12-04 Thread Rob Dixon
ot;Ed Christian" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 03, 2002 8:45 PM Subject: Floating point errors in Perl > Question for the masses: > > I have a script which iterates through percentiles, ostensibly starting > at the 0th percentile and

RE: Floating point errors in Perl

2002-12-03 Thread Bob Showalter
> -Original Message- > From: Ed Christian [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 03, 2002 3:46 PM > To: [EMAIL PROTECTED] > Subject: Floating point errors in Perl > > > Question for the masses: > > I have a script which iterates through perce

Floating point errors in Perl

2002-12-03 Thread Ed Christian
Question for the masses: I have a script which iterates through percentiles, ostensibly starting at the 0th percentile and working up to the 100th percentile. I'd like the script to basically go as follows: my $increment = 0.01; my $percentile = 0.01; while ($percentile < 1.00) { print "$perce