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)
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)
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)
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)