Skip to main content
Inspiring
Dec 15, 2022 12:04 PM UTC
Open for Voting

Functions: negative integer processing is not working properly

    5 replies

    Luca Giarrizzo
    Community Manager
    Community Manager
    Dec 19, 2022 10:38 AM UTC

    Hello,

     

    Thank you @_Olivier_L for reporting this issue and @davescm for merging issues related to negative integers. I have done the same on our end.

     

    Best regards.

     

    Translate
    Luca Giarrizzo | Quality Engineer - Substance 3D Designer | Adobe
    davescm
    Community Expert
    Community Expert
    Dec 19, 2022 9:39 AM UTC

    @kirkr5689 I merged your post with an existing bug report.

    There are issues with comparisons on negative integers and cast to float does not work correctly.

     

    Dave

    Translate
    Inspiring
    Dec 18, 2022 10:15 AM UTC

    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?

     

     

    Translate
    davescm
    Community Expert
    Community Expert
    Dec 15, 2022 9:16 PM UTC

    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.

     

    Dave

     

     

    Translate
    Inspiring
    Dec 15, 2022 12:13 PM UTC

    Please someone move this in the Bug section, for some reason I cannot edit my own message...

    Translate