GNOME Bugzilla – Bug 403758
floating number not parsed correctly.
Last modified: 2007-02-14 20:28:16 UTC
Please describe the problem: Floating point number with ".1" after the decimal points (e.g., "1.1"), are not parsed correctly. The value returned is "2" instead. We trace it down to this function: gdouble cr_utils_n_to_0_dot_n (glong a_n) { gdouble result = a_n; while (ABS (result) > 1) { result = result / 10; } return result; } For the value "1.1" example, "1" is passed into this function and the function shall return ".1". But its logic returns "1" instead. That is wrong. Steps to reproduce: 1. parse a css rule "body {font-size: 1.1em}" . 2. Output it, you will get "2em". 3. Actual results: Expected results: expect body {font-size: 1.1em}" Does this happen every time? yes Other information:
*** This bug has been marked as a duplicate of 306823 ***