Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - - sign negation (unary) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 -                   Sign negation (unary)
------------------------------------------------------------------------------
 Syntax
   -nNumber

 Arguments
   nNumber is a signed numeric expression.

 Description
   The - operator performs arithmetic negation by reversing the sign of
   the operand.

 Example
   #define EXAMPLE_OPERATOR
   #include example.hdr

   proc Test_1451
   vardef
      int nValue
   enddef
   nValue := 5
   ? nValue
   ? -nValue
   endproc

   proc main
   Test_1451()
   endproc

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson