develooper Front page | perl.datetime | Postings from January 2003

Re: fixed-point

Thread Previous | Thread Next
From:
fglock
Date:
January 14, 2003 03:37
Subject:
Re: fixed-point
Message ID:
3E23F6E7.67AB@pucrs.br
Dave Rolsky wrote:
> I think the main recise for fixed-point is to avoid rounding errors and
> allow for integer math.  Or maybe I'm making that up.  I'm no expert on
> date math.

Ok, Date::Tie has some special code for detecting special cases of 
last-digit rounding errors (turns 0.9999999999999998 into 1)
It's not too difficult.

- Flávio S. Glock

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About