# Float Property: Shows Incorrect Decimal Value

I have a script that is setting some custom properties on an object. The properties are being assigned just fine and can be accessed with the proper floating point value. But the Custom Properties UI display shows the decimal value incorrectly as x.000. (See image)

How do I get the values to show up properly in the UI panel?

• What's the code you Are using to define the property? – aliasguru Sep 8 '16 at 20:11
• ob['property_name'] = 1234.5678901 – D. Waschow Sep 8 '16 at 20:22
• When I run this code: import bpy ob = bpy.context.active_object ob['property'] = 987654.321 The Custom Properties shows the value as 987654.313. How is it getting that value? – D. Waschow Sep 8 '16 at 20:34
• This looks like it might be a bug. Check the bug tracker and see if it's been reported. If not, it's probably a good candidate for reporting. Otherwise I think the next step is to post your complete code. – Matt Sep 8 '16 at 20:39
• I logged a bug report, but it got closed citing floating point precision as the culprit. I disagree, as the value stored within the property is correct when accessed through the Python Console. It's only displayed incorrectly in the UI, as shown here: skwerm.com/public/Property2.png – D. Waschow Sep 9 '16 at 13:28