<< Prev        Next >>

ID : 238

Pow

Function

To return a value obtained by raising a specified numeric value by a specified value.

Syntax

Pow(base,index)

Guaranteed entry

Base
Specify a numeric value to be raised.
Index
Specify a numeric value to specify the power.

Return value

Return a value obtained by raising the numeric value base by index.

Description

The exponential of the value specified in index of base is returned.

Related Terms

^ Operator, Exp, Log, Log10

Attention

-

Example

'!TITLE "Exponential Calculation"
' Calculate the square of 5
Sub Sample_Pow

  Dim aaa As Integer

  ' Assign the square of 5 to aaa
  aaa = Pow( 5, 2 )

  ' Display "25" on the message output window
  PrintDbg aaa

End Sub

ID : 238

<< Prev        Next >>