Comment 6 for bug 459027

Revision history for this message
Omar (Pexego) (omar7r) wrote :

Hi sma,

It isn't fix. Where you write your lines, obtain the digits but the float was rounded yet to two digits then if it maintains the digits it's good but the number it's not the original. On Float() class, validators.py file inside _from_python() function it did the rounding. I think that bug it is here.

Other thing is that in Spain or other counties where float symbol is the comma not point, your lines fail, you can write for example:
values[k] = format.format_decimal(float(values[k].replace(',', '.')) or 0.0, digit or 2)

Thanks