検索 - User list
Full Version: Geometry Spreadsheet: Too Many Digits = Negative Value?
Root » Technical Discussion » Geometry Spreadsheet: Too Many Digits = Negative Value?
olivierth
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
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
Ah pefect, it works!

I simply set my wrangle to 64 bit (in the Bindings tab) instead of using the Attribute Cast sop.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.