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

Functions: negative integer processing is not working properly

Contributor ,
Dec 15, 2022 Dec 15, 2022

Copy link to clipboard

Copied

sdNegInteger.jpg

Bug Unresolved

Views

189

Translate

Translate

Report

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

 

 

Votes

Translate

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

 

Dave

 

 

Votes

Translate

Translate

Report

Report
Enthusiast ,
Dec 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?

 

 

Votes

Translate

Translate

Report

Report
Community Expert ,
Dec 19, 2022 Dec 19, 2022

Copy link to clipboard

Copied

@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

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Dec 19, 2022 Dec 19, 2022

Copy link to clipboard

Copied

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 | QA Analyst, 3D & Immersive | Adobe

Votes

Translate

Translate

Report

Report