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 - /= division compound assignment operator (binary) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 /=                  Division compound assignment operator (binary)
------------------------------------------------------------------------------
 Syntax
   nVar /= nNumber

 Arguments
   nVar is a numeric variable that receives the assignment. The variable
   must be initialized to a value before performing the operation.

   nNumber is the right operand to the / operator.

 Description
   The /= operator performs a / operation with the current value
   of nVar and nNumber, then assigns the result to nVar.

   The action by /= is equivalent to nVar := ( nVar / nNumber ).

 Example
   #define EXAMPLE_OPERATOR
   #include example.hdr

   proc Test_940
   vardef
      dbl eValue
   enddef
   eValue := 1024.8
   eValue /= 4
   ? eValue                   // prints 256.2
   endproc

   proc main
   Test_940()
   endproc

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