Instruction to set a negative number to positive
Posted: Mon Aug 26, 2019 7:23 pm
Which is the instruction to convert a negative number to positive? And viceversa.
The example -3 to 3.
The example -3 to 3.
The Cross-Platform Multimedia Application Layer
https://www.hollywood-mal.com/forums/
Just use the - operatorJuan Carlos wrote: ↑Mon Aug 26, 2019 7:23 pm Which is the instruction to convert a negative number to positive? And viceversa.
The example -3 to 3.
Code: Select all
i=-3
i=-i
DebugPrint("i= ",i)