Skip to main content

Global context.Pow

Pow

Syntax

Pow(<Base>, <Factor>)

Parameters

<Base> (required)

Type: Number. Base of exponentiation operation.

<Factor> (required)

Type: Number. Exponent.

Returned value

Type: Number. Exponentiation result.

Description

Exponentiates <X> to the degree of <Y>.

Availability

Thin client, web-client, mobile client, server, thick client, external connection, mobile application (client), mobile application (server), mobile standalone server.

Внимание: Данный метод не поддерживается при работе через COM-соединение

Note

In case of arithmetic overflow or if it is impossible to calculate the result, "Incorrect argument value for built-in function (Pow)" error message is displayed.

Example

// Calculate sphere volume using value of radius

Pi = 3.1415926535897932;
Radius = 3;
V = 4*Pi*Pow(Radius,3)/3;
Message("Volume of sphere with radius of "
    + Radius + " is equal to " + Format(V,"NFD=2"));

Translation

Русская версия: Глобальный контекст.Pow (Global context.Pow)