Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>** exponentiation -- binary (mathematical)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
**             Exponentiation -- binary                   (Mathematical)


Syntax:        <expN1> ** <expN2>

Type:          Numeric

Operands:      <expN1> is the numeric value to raise to a power.

               <expN2> is the power to raise <expN1>.

Description:   The exponentiation operator (**) is a binary operator
               that raises <expN1> to the power of <expN2>.


----------------------------------- Examples -------------------------------

   SET DECIMALS TO 16
   ?  3 **  0                            && Result: 1.000000000
   ?  3 **  1                            && Result: 3.000000000

   ?  3 ** -2                            && Result: 0.111111111
   ? -3 **  2                            && Result: 9.000000000
   ? -3 **  0                            && Result: 1.000000000
   ? -1 **  3                            && Result: 1.000000000
   ? -2 **  3                            && Result: 8.000000000
   ?  2 ** -3                            && Result: 0.125000000
   ?  1 ** -3                            && Result: 1.000000000

See Also: % * + - / Expr_error() SET DECIMALS SET FIXED

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