John J. Trammell wrote:
> On Dec 6, 2007 9:13 PM, Isaac Atilano <aristophrenic at warpmail.net> wrote:
> [snip]
> One solution I heard on the Perl 6 list was to use a 64-bit floating
> point value for time, and to reset the Epoch to 1 January 2000.  I'm
> not sure what I think about this.
> 
> J

Of course, because floating point arithmetic never has issues with accuracy.

#!/usr/bin/perl -w
my $float = 0, $interval = 0.1, $max = 10;
while($float < $max){ $float += $interval; print "$float\n"; }

oh wait!  And for those that think the extra decimal places at the end
are no big deal, try counting the number of loops it goes through.

`./floats.pl | wc -l` = 101

oops!  Thats one too many.

I don't have a solution to the 2038 issue, but I draw the line on using
approximated values for anything that requires accuracy.

/my $0.02
Chris Frederick