Title: Bonsai: numeric IFC attributes lose precision when edited via Edit Attributes (float32 truncation) · Issue #10085 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai: numeric IFC attributes lose precision when edited via Edit Attributes (float32 truncation) · Issue #10085 · IfcOpenShell/IfcOpenShell
X Title: Bonsai: numeric IFC attributes lose precision when edited via Edit Attributes (float32 truncation) · Issue #10085 · IfcOpenShell/IfcOpenShell
Description: Bug Description Problem Numeric values entered or saved through the Edit Attributes panel are written to IFC with float32 precision instead of the double precision IFC uses. The panel still shows the rounded value, so the change is invis...
Open Graph Description: Bug Description Problem Numeric values entered or saved through the Edit Attributes panel are written to IFC with float32 precision instead of the double precision IFC uses. The panel still shows t...
X Description: Bug Description Problem Numeric values entered or saved through the Edit Attributes panel are written to IFC with float32 precision instead of the double precision IFC uses. The panel still shows t...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/10085
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai: numeric IFC attributes lose precision when edited via Edit Attributes (float32 truncation)","articleBody":"### Bug Description\n\n**Problem**\n\nNumeric values entered or saved through the *Edit Attributes* panel are written to IFC with float32 precision instead of the double precision IFC uses. The panel still shows the rounded value, so the change is invisible to the user.\n\n**Steps to reproduce**\n\n1. Select an `IfcBuildingStorey`, click *Edit Attributes*.\n2. Enter `Elevation` = `320.15`, click *Save*.\n3. Inspect the attribute (e.g. `storey.Elevation` in the Python console, or the saved file).\n\n**Expected:** `320.15`\n**Actual:** `320.1499938964844` (= `float(numpy.float32(320.15))`)\n\n**Why it matters**\n\n- The file does not contain the values the user typed, which undermines IFC as a precise exchange format.\n- Elements that should touch end up with tiny gaps or overlaps, which affects booleans, voids, clash detection and earthworks cuts.\n- Values checked against requirements (IDS, project templates) are only right because of checker tolerances, not because the data is right.\n\n**Analysis**\n\n`Attribute.float_value` already routes through an ID property (double) via a custom `get`/`set`. According to #8986, this pattern no longer preserves precision in Blender 5.2, because the setter already receives a float32 value (`1234567.891` reads back as `1234567.875`). The `FloatProperty` part of #8986 was dropped for that reason; I could not find a separate issue tracking it.\n\n**Possible fixes**\n\n- Back numeric attribute fields with a `StringProperty` (validated as a number) and convert to `float` only when writing to IFC.\n- At minimum, do not write back numeric values the user did not change.\n\n**Environment**\n\nBonsai [version] · IfcOpenShell [version] · Blender 5.2.0 LTS · Windows\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/SautaRoc","@type":"Person","name":"SautaRoc"},"datePublished":"2026-10-28T15:28:02Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/10085"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ce3a3840-b2d7-25b8-a10f-a9ab79e76fe0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1BA:3AACE0:189847:223C70:6B04665B |
| html-safe-nonce | 72833e85cf89f7edca7b98ffb1a223ee4ce89da81e6446f5949b2e654e76e8d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUJBOjNBQUNFMDoxODk4NDc6MjIzQzcwOjZCMDQ2NjVCIiwidmlzaXRvcl9pZCI6IjkxMDkyNzI0NDQyNzA4MzExOTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1602920d91a758ec83fc0608d1ac4e5540fc2dbb65a8472e8b4c92e2329413db |
| hovercard-subject-tag | issue:6082056441 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/10085/issue_layout |
| twitter:image | https://opengraph.githubassets.com/537329e666dcff0d9ec42f1c01b42463ae48e331e69b1bd9195995da68573721/IfcOpenShell/IfcOpenShell/issues/10085 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/537329e666dcff0d9ec42f1c01b42463ae48e331e69b1bd9195995da68573721/IfcOpenShell/IfcOpenShell/issues/10085 |
| og:image:alt | Bug Description Problem Numeric values entered or saved through the Edit Attributes panel are written to IFC with float32 precision instead of the double precision IFC uses. The panel still shows t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SautaRoc |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width