11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

^<br />

Syntax<br />

expr1^expr2<br />

Synonym<br />

**<br />

Description<br />

The ^ arithmetic operator raises expr1 to the power of expr2.<br />

Example<br />

In the following example, the program segment raises variable X to the power of 3,<br />

first using an exponentiation operator **, second using the PWR function, and last<br />

using the exponentiation operator ^. The results are identical.<br />

X = 2<br />

PRINT X**3<br />

PRINT PWR(X,3)<br />

PRINT X^3<br />

Related Command<br />

<strong>UniBasic</strong><br />

PWR<br />

^ 1-50

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!