General

Profile

loirotte (Philippe Dosch)

  • Login: loirotte
  • Email: loirotte@gmail.com
  • Registered on: 02/12/2013
  • Last sign in: 03/04/2013

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

02/21/2013

12:46 AM Ruby Bug #7829: Rounding error in Ruby Time
david_macmahon (David MacMahon) wrote:
> On Feb 12, 2013, at 12:51 AM, loirotte (Philippe Dosch) wrote:
> ...
Once again, more documentation about this behavior is a good thing, but I'm really not sure that this is the best solution fo...
loirotte (Philippe Dosch)

02/12/2013

05:58 PM Ruby Bug #7829: Rounding error in Ruby Time
akr (Akira Tanaka) wrote:
> 2. Time.strftime("%L") doesn't round, but floor.
> ...
Understood, except for your sentence "rounding is not appropriate here". The example clearly shows the opposite! Just surprised that floor is used inste...
loirotte (Philippe Dosch)
05:51 PM Ruby Bug #7829: Rounding error in Ruby Time
drbrain (Eric Hodel) wrote:
> Seems like %L uses floor, not rounding should be documented so I'll switch this to a DOC ticket.
Improve the documentation makes sense, but is there really a good reason to floor this value instead of ro...
loirotte (Philippe Dosch)
05:52 AM Ruby Bug #7829 (Closed): Rounding error in Ruby Time
Even if I know the precision errors related to the implementation of IEEE 754 floating values, I'm very surprised of:
irb(main):001:0> Time.utc(1970,1,1,0,0,12.860).strftime("%H:%M:%S,%L")
=> "00:00:12,859"
The fact is that I obta...
loirotte (Philippe Dosch)

Also available in: Atom