Hi guys,
If I have variable with a value with negative sign, and then when I have other variable, how to make this other variable have the same sign as the 1st variable in x++ ? Is there a Sign() function in x++ ?
Thanks
I am not aware of sign function.
For your requirement you can just give if condition and check if other variable is less or greater than 0 and make the present variable value accordingly.
Hi Lars Volt,
Use Global::sign(real number);
Thanks,
Girish S.
Hi Voltes,
Global class contains a sign function which you can refer to.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 683 Most Valuable Professional
André Arnaud de Cal... 563 Super User 2025 Season 2
Sohaib Cheema 398 User Group Leader