1. Packages
  2. Standard Library
  3. API Docs
  4. pow
StandardLibrary v2.3.2 published on Tuesday, Feb 10, 2026 by Pulumi
std logo
StandardLibrary v2.3.2 published on Tuesday, Feb 10, 2026 by Pulumi

    Returns the base input raised to the power of the exponent.

    Using pow

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function pow(args: PowArgs, opts?: InvokeOptions): Promise<PowResult>
    function powOutput(args: PowOutputArgs, opts?: InvokeOptions): Output<PowResult>
    def pow(base: Optional[float] = None,
            exponent: Optional[float] = None,
            opts: Optional[InvokeOptions] = None) -> PowResult
    def pow_output(base: Optional[pulumi.Input[float]] = None,
            exponent: Optional[pulumi.Input[float]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[PowResult]
    func Pow(ctx *Context, args *PowArgs, opts ...InvokeOption) (*PowResult, error)
    func PowOutput(ctx *Context, args *PowOutputArgs, opts ...InvokeOption) PowResultOutput

    > Note: This function is named Pow in the Go SDK.

    public static class Pow 
    {
        public static Task<PowResult> InvokeAsync(PowArgs args, InvokeOptions? opts = null)
        public static Output<PowResult> Invoke(PowInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<PowResult> pow(PowArgs args, InvokeOptions options)
    public static Output<PowResult> pow(PowArgs args, InvokeOptions options)
    
    fn::invoke:
      function: std:pow
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Base double
    Exponent double
    Base float64
    Exponent float64
    base Double
    exponent Double
    base number
    exponent number
    base float
    exponent float
    base Number
    exponent Number

    pow Result

    The following output properties are available:

    Result double
    Result float64
    result Double
    result number
    result float
    result Number

    Package Details

    Repository
    std pulumi/pulumi-std
    License
    std logo
    StandardLibrary v2.3.2 published on Tuesday, Feb 10, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate