Hi!

I just wanted to ask if there was any news regarding the float problem I reported to this list earlier (and to trac as #92). I was able to workaround the original problem by just clipping the floats to two decimals, but now I have to correctly display floats with up to 6 decimals.

Here's two anomalies:

DB: 80.3, Midgard value: 80,300003
DB: 1736.40649, Midgard value: 1736.406494

The dbtype of the property is double, the type is float. The same thing happens when both dbtype and type are set to float. Plus, it happens with straight Midgard objects (on 1.8.4, PHP5.2, Debian Testing and openSuse 10.2), i.e. it doesn't seem to have anything to do with MidCOM.

So if someone knows anything I could try, please let me know, the only workaround I can think of right now would be to set the property type to text and then cast the value back to float in my component code, which would be a bit too messy, really.


Bye,

Andreas
_______________________________________________
user mailing list
[email protected]
http://lists.midgard-project.org/mailman/listinfo/user

Reply via email to