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

Re: fixed-point

Thread Previous | Thread Next
January 14, 2003 03:37
Re: fixed-point
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About