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
Hi Voltes,
Global class contains a sign function which you can refer to.
Hi Lars Volt,
Use Global::sign(real number);
Thanks,
Girish S.
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.
André Arnaud de Cal...
292,160
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156