web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

0s complement

(0) ShareShare
ReportReport
Posted on by 10

I need to know how to create the 0s complement of a number.

EXAMPLE: the 0s complement of 5 is -5.

Or how do you make a number negative in AX?

Maybe there is a trick to make a variable negative.

 Let me know! (I suddenly needed this while I was programming in product builder.)

Thanks, 

 

 

*This post is locked for comments

I have the same question (0)
  • RoVer Profile Picture
    10 on at
    Re: 0s complement

    Well don't search to far for the solution...

     x = -x;  is just what you need.

    kind regards, 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 3

#3
Willem van Duren Profile Picture

Willem van Duren 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans