Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Functions: negative integer processing is not working properly

Contributor ,
Dec 15, 2022 Dec 15, 2022

sdNegInteger.jpg

Bug Unresolved
327
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 15, 2022 Dec 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.

 

Dave

 

 

Translate
5 Comments
Contributor ,
Dec 15, 2022 Dec 15, 2022

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

Translate
Report
Community Expert ,
Dec 15, 2022 Dec 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.

 

Dave

 

 

Translate
Report
Enthusiast ,
Dec 18, 2022 Dec 18, 2022

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
Report
Community Expert ,
Dec 19, 2022 Dec 19, 2022

@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
Report
Adobe Employee ,
Dec 19, 2022 Dec 19, 2022
LATEST

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.

 

Luca Giarrizzo | Quality Engineer, 3D & Immersive | Adobe
Translate
Report