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

 Arguments
   nNumber1 is a numeric expression to be the dividend in the division.

   nNumber2 is a numeric expression to be the divisor in the division.

 Description
   The / operator returns a numeric value resulting from dividing
   the two operands. The nNumber2 operand must not evaluate to zero.

 Example
   #define EXAMPLE_OPERATOR
   #include example.hdr

   proc Test_921
   vardef
      dbl eNum
   enddef
   // ?  3.0 /  0            // runtime error
      ?  3.0 / -2            // prints -1.5
      ? -3.0 /  2            // prints -1.5
   // ? -3.0 /  0            // runtime error
      ? -1.0 / -3            // prints  0.3
      ? -2.0 /  3            // prints -0.67
      ?  2.0 / -3            // prints -0.67
      ?  1.0 / -3            // prints -0.3
   endproc

   proc main
   Test_921()
   endproc

See Also: *

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