davescm • Community Expert, Dec 15, 2022Dec 15, 2022
I've moved this to Bugs.
There are a few problems with negative integers - for example a comparison of -15 > +10 comes out as true. As you have discovered casting to float does not work correctly either.
/t5/substance-3d-designer-bugs/functions-negative-integer-processing-is-not-working-properly/idc-p/13423981#M120Dec 15, 2022
Dec 15, 2022
Copy link to clipboard
Copied
I've moved this to Bugs.
There are a few problems with negative integers - for example a comparison of -15 > +10 comes out as true. As you have discovered casting to float does not work correctly either.
/t5/substance-3d-designer-bugs/functions-negative-integer-processing-is-not-working-properly/idc-p/13429340#M121Dec 18, 2022
Dec 18, 2022
Copy link to clipboard
Copied
I tried it with > < kind of nodes to detect negative integers , then abs , turn to float and *-1 . But > considers -2 be greater than 0. Is it right? I always though otherwise.
Any other way to turn negative integer input into negative float?