[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-janitors] #654: time command overly precise after 7756d8b

From: Chicken Trac
Subject: Re: [Chicken-janitors] #654: time command overly precise after 7756d8b
Date: Mon, 18 Jul 2011 01:28:28 -0000

#654: time command overly precise after 7756d8b
  Reporter:  zbigniew  |       Owner:       
      Type:  defect    |      Status:  new  
  Priority:  minor     |   Milestone:  4.8.0
 Component:  unknown   |     Version:  4.7.x
Resolution:            |    Keywords:       

Comment(by zbigniew):

 After screwing around with it for a while, the only reliable way I found
 to avoid it is to limit the flonum precision to 6 (i.e. microseconds), as
 in the attached patch.

 The root cause ''could'' be that Chicken doesn't print or round flonums
 correctly sometimes -- for example it may print 0.00144299999999998 when
 the C library would print 0.001443 (with %.15g, precision 15).  I've
 noticed this several times, but have not tracked it down yet.  This
 happens when the bitwise representation of the flonum is verifiably
 correct, so I assume it is a bug in the printer.  The fmt egg prints many,
 but not all, of these correctly.

 In the meantime, maybe just limit the output precision?

Ticket URL: <>
Chicken Scheme <>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]