Re: Float printf precision

2013-03-31 Thread Henri Verbeet
On 31 March 2013 11:58, Stefan Dösinger wrote: > I was curious how you ended up with 8 digits. My thinking was that 32 > bit floats have a 23 bit mantissa, and one digit in the printout > encodes lb(10) bits - so you need ~6,9 digits to encode the mantissa, > which rounds up to 7. Thinking further

Float printf precision

2013-03-31 Thread Stefan Dösinger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Henri, While overhauling the patch to hardcode local constants in the shader code I came across the TRACEs in wined3d_device_set_{vs,ps}_consts_f, which print the floats with %.8e. You changed this from %f in 979e3744f7721bef9e88fd671dfd7591c9f853