On 1/25/12 5:13 PM, Chris Lilley wrote: > On Tuesday, January 24, 2012, 5:28:54 AM, Gérard wrote: > > GT> 138px mult by 0.17391 == 23.99958px > GT> but both Chrome 16.0.912.77, Konqueror 4.7.4 and Opera 11.60 will > GT> unexpectedly truncate that value to 23px! > > Why on earth do they truncate rather than round? Probably because that's what C++ does when you assign a float to an integer. So if you don't think about the conversion too hard, that's the behavior you get. > Is there some spec-conformance issue that makes them do this (apparently dumb) behaviour? No. -BorisReceived on Wednesday, 25 January 2012 16:48:01 UTC
This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 19:58:17 UTC