I am trying to validate “glQueryMatrix” API.

To validate, I initially load a identity matrix to modelview matrix and then multiply with a arbitrary 4 * 4 matrix “m”.

Then i get the mantissa and exponent by using the above API.

Now to validate the obtained value I do the following:

(mantissa[i] * (2 ^ exponent[i]) ) to get component[i]. Since the original matrix was identity i expect the component[i] value to be same as m[i]. But they are not equal.

Is this the right way to validate the values obtained by Query matrix.