Henster
Hi,
I'm doing something like this:
atan($X/$Y)
and I'm getting weird results. I've found an example of what is causing it. A number like this crops up 1.61499e-00 (from the geometry spreadsheet). If I then rig this same calculation but exchange this number for a truncated version 1.61499 then it works.
I cant find a function that truncatesto a few floating points???
Thanks for any replies
First of all, the geo spreadsheet probably truncates what you see, so you probably shouldn't use it to really gauge this. Instead, write out a .geo file and look at the values in there.
That said, the Houdini math libraries have (since the PRISMS) days had problems with really, really small numbers. I would add in (via a point SOP) something like if(abs($TX)<.00001,0, $TX), i.e. knock all near-zero values down to zero.
– Antoine