olivierth
2026年9月21日 13:58:41
Hi!
In a detail wrangle, I'm multiplying the number 1029701632 by 4. The result is a negative value (result: -176160768) in the geometry spreadsheet. Is it because there's a limit to the amount of digits Houdini allows? Is there a way not to do that?
My wrangle is calculating the polycount after subdivisions (before actually subdividing). The idea is the alert the user to make a better choice when subdividing.
-Olivier
FedorK_FX
2026年9月21日 14:56:42
Most likely you are just hitting the limit of 32bit integer with that multiplication which can result in negative numbers (last bit is a sign bit). You can cast the attribute to 64bit with Attribute Cast and it should behave as you expect.
olivierth
2026年9月21日 16:23:10
Ah pefect, it works!
I simply set my wrangle to 64 bit (in the Bindings tab) instead of using the Attribute Cast sop.